Index: branches/5.3.x/core/units/general/general_config.php =================================================================== diff -u -r15659 -r15698 --- branches/5.3.x/core/units/general/general_config.php (.../general_config.php) (revision 15659) +++ branches/5.3.x/core/units/general/general_config.php (.../general_config.php) (revision 15698) @@ -1,6 +1,6 @@ 'm', - 'EventHandlerClass' => Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild'), -// 'TagProcessorClass' => Array ('class' => 'kMainTagProcessor', 'file' => '', 'build_event' => 'OnBuild'), +$config = new kUnitConfig('m', null, false); - 'QueryString' => Array ( - 1 => 'cat_id', - 2 => 'cat_page', - 3 => 'lang', - 4 => 'theme', - 5 => 'opener', - 6 => 'wid', - ), +$config->setEventHandlerClass(Array ('class' => 'kEventHandler', 'file' => '', 'build_event' => 'OnBuild')); +//$config->setTagProcessorClass(Array ('class' => 'kMainTagProcessor', 'file' => '', 'build_event' => 'OnBuild')); - 'TitleField' => 'CachedNavbar', - 'TitlePhrase' => 'la_Text_Category', - 'CatalogTabIcon' => 'icon16_section.png', - 'ItemType' => 1, - 'TableName' => TABLE_PREFIX . 'Categories', +$config->setQueryString(Array ( + 1 => 'cat_id', + 2 => 'cat_page', + 3 => 'lang', + 4 => 'theme', + 5 => 'opener', + 6 => 'wid', +)); - 'CatalogItem' => true, +$config->setTitleField('CachedNavbar'); +$config->setTitlePhrase('la_Text_Category'); +$config->setCatalogTabIcon('icon16_section.png'); +$config->setItemType(1); +$config->setTableName(TABLE_PREFIX . 'Categories'); +$config->setCatalogItem(true); +$config->setPortalStyleEnv(true); - 'PortalStyleEnv' => true, +$config->setRewritePriority(100); +$config->setRewriteListener('c_EventHandler:CategoryRewriteListener'); - 'RewritePriority' => 100, - 'RewriteListener' => 'c_EventHandler:CategoryRewriteListener', - - 'PermTabText' => 'In-Portal', - 'PermSection' => Array ('search' => 'in-portal:configuration_search', 'custom' => 'in-portal:configuration_custom'), -); \ No newline at end of file +$config->setPermTabText('In-Portal'); +$config->setPermSection(Array ('search' => 'in-portal:configuration_search', 'custom' => 'in-portal:configuration_custom'));