Thread:Project:Support desk/Problem with displaying the category tree

The problem is that when you load the page, a category tree is displayed in expanded form.

But we need to when the page loads, a category tree was harvested.

MediaWiki    1.16.4 PHP	5.1.6 (cgi-fcgi) MySQL	5.0.77

code to display the category tree:

Extension in the LocalSettings.php file CategoryTree I connect like this:

$wgUseAjax = true;

require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
 * 1) CategoryTree - дерево категорий

$wgCategoryTreeMaxChildren=1000;
 * 1) Максимум потомков (ветвей в ноде)

$wgCategoryTreeDynamicTag=false;
 * 1) AJAX использовать?

$wgCategoryTreeDisableCache=true;

$wgCategoryTreeSidebarRoot="Главная страница";
 * 1) Корневая категория, вместо "Root" - свою категорию.

$wgCategoryTreeSidebarOptions['mode'] = 'all';
 * 1) Режим для AJAX


 * 1) $wgCategoryTreeMaxDepth = 200;

$wgCategoryTreeMaxDepth = array(CT_MODE_PAGES =>10, CT_MODE_ALL =>10, CT_MODE_CATEGORIES =>10);

Tell me, what's the problem???