- " id="" name="" style="width: 100%; height: 45px" cols="70" rows="3">
+
|
Index: branches/5.3.x/install/upgrades.php
===================================================================
diff -u -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 -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 -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 -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 @@
-