Index: branches/5.3.x/install/install_data.sql =================================================================== diff -u -N -r15673 -r15901 --- branches/5.3.x/install/install_data.sql (.../install_data.sql) (revision 15673) +++ branches/5.3.x/install/install_data.sql (.../install_data.sql) (revision 15901) @@ -182,4 +182,4 @@ INSERT INTO ImportScripts VALUES (DEFAULT, 'Articles from CSV file [In-News]', '', 'n', 'In-News', '', 'CSV', '1'); -INSERT INTO Modules VALUES ('In-News', 'modules/in-news/', 'n', DEFAULT, 1, 2, 'in-news/', {NewsCatId}, NULL, NULL); \ No newline at end of file +INSERT INTO Modules VALUES ('In-News', 'modules/in-news/', 'Intechnic\\InPortal\\Modules\\InNews', 'n', DEFAULT, 1, 2, 'in-news/', {NewsCatId}, NULL, NULL); \ No newline at end of file Index: branches/5.3.x/admin_templates/articles/articles_edit.tpl =================================================================== diff -u -N -r15689 -r15901 --- branches/5.3.x/admin_templates/articles/articles_edit.tpl (.../articles_edit.tpl) (revision 15689) +++ branches/5.3.x/admin_templates/articles/articles_edit.tpl (.../articles_edit.tpl) (revision 15901) @@ -70,7 +70,7 @@ -
+
Index: branches/5.3.x/install/upgrades.php =================================================================== diff -u -N -r15697 -r15901 --- branches/5.3.x/install/upgrades.php (.../upgrades.php) (revision 15697) +++ branches/5.3.x/install/upgrades.php (.../upgrades.php) (revision 15901) @@ -1,6 +1,6 @@ Array ('Core' => '5.2.0-RC1'), '5.2.0' => Array ('Core' => '5.2.0'), '5.2.1-B1' => Array ('Core' => '5.2.1-B1'), + '5.2.1-B2' => Array ('Core' => '5.2.1-B2'), + '5.2.1-RC1' => Array ('Core' => '5.2.1-RC1'), ); } Index: branches/5.3.x/install.php =================================================================== diff -u -N -r15488 -r15901 --- branches/5.3.x/install.php (.../install.php) (revision 15488) +++ branches/5.3.x/install.php (.../install.php) (revision 15901) @@ -1,6 +1,6 @@ toolkit; - /* @var $toolkit kInstallToolkit */ - } - $application =& kApplication::Instance(); - $application->Init(); + $toolkit = new kInstallToolkit(); +} +else { + // install, using installation wizard + $toolkit =& $this->toolkit; + /* @var $toolkit kInstallToolkit */ +} - if ($application->RecallVar('user_id') != USER_ROOT) { - die('restricted access!'); - } +$application =& kApplication::Instance(); +$application->Init(); - $category =& $toolkit->createModuleCategory('News', 'News Articles', '#in-news/section_design#', 'in-news/img/menu_articles.gif'); +if ( $application->RecallVar('user_id') != USER_ROOT ) { + die('restricted access!'); +} - $toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); - $toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{NewsCatId}', $category->GetID()); - $toolkit->ImportLanguage('/' . $module_folder . '/install/english'); +$category =& $toolkit->createModuleCategory('News', 'News Articles', '#in-news/section_design#', 'in-news/img/menu_articles.gif'); - $toolkit->SetModuleRootCategory(basename($module_folder), $category->GetID()); +$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); +$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql', '{NewsCatId}', $category->GetID()); +$toolkit->ImportLanguage('/' . $module_folder . '/install/english'); - $toolkit->linkCustomFields(basename($module_folder), 'n', 2); // to create Custom Fields for News - $toolkit->linkCustomFields('KERNEL', 'c', 1); // to create ItemTemplate custom field - $toolkit->setModuleItemTemplate($category, 'n', '#in-news/item_design#'); +$toolkit->SetModuleRootCategory(basename($module_folder), $category->GetID()); - $toolkit->finalizeModuleInstall($module_folder, true); \ No newline at end of file +$toolkit->linkCustomFields(basename($module_folder), 'n', 2); // to create Custom Fields for News +$toolkit->linkCustomFields('KERNEL', 'c', 1); // to create ItemTemplate custom field +$toolkit->setModuleItemTemplate($category, 'n', '#in-news/item_design#'); + +$toolkit->finalizeModuleInstall($module_folder, true); Index: branches/5.3.x/install/upgrades.sql =================================================================== diff -u -N -r15673 -r15901 --- branches/5.3.x/install/upgrades.sql (.../upgrades.sql) (revision 15673) +++ branches/5.3.x/install/upgrades.sql (.../upgrades.sql) (revision 15901) @@ -140,3 +140,10 @@ UPDATE SystemSettings SET DisplayOrder = 20.04 WHERE VariableName = 'Perpage_NewsReviews'; + +# ===== v 5.2.1-B2 ===== +UPDATE Modules +SET ClassNamespace = 'Intechnic\\InPortal\\Modules\\InNews' +WHERE `Name` = 'In-News'; + +# ===== v 5.2.1-RC1 ===== Index: branches/5.3.x/units/articles/articles_config.php =================================================================== diff -u -N -r15673 -r15901 --- branches/5.3.x/units/articles/articles_config.php (.../articles_config.php) (revision 15673) +++ branches/5.3.x/units/articles/articles_config.php (.../articles_config.php) (revision 15901) @@ -1,6 +1,6 @@ - + + + + + JGJvZHkNCjxici8+PGJyLz4NCg0KU2luY2VyZWx5LDxici8+PGJyLz4NCg0KV2Vic2l0ZSBhZG1pbmlzdHJhdGlvbi4NCg0KPCEtLSMjIDxpbnAyOmVtYWlsLWxvZ19JdGVtTGluayB0ZW1wbGF0ZT0icGxhdGZvcm0vbXlfYWNjb3VudC9lbWFpbCIvPiAjIy0tPg== + QXV0aG9y RGF0ZQ==