Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Fri, Nov 21, 8:58 PM

in-portal

Index: branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php
===================================================================
--- branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php (revision 8283)
+++ branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php (revision 8284)
@@ -1,8 +1,31 @@
<?php
require_once FULL_PATH.'/core/install/upgrades.php'; // k4_include_once doesn't globalize $upgrade_class :(
$upgrade = new $upgrade_class();
/* @var $upgrade CoreUpgrades */
$upgrade->Upgrade_4_1_0('after');
+
+ $db =& inst_GetADODBConnection(true);
+
+ $sql = 'SELECT *
+ FROM '.TABLE_PREFIX.'Modules
+ WHERE Name = "Core"';
+ $core_found = $db->GetRow($sql);
+
+ if (!$core_found) {
+ $fields_hash = Array (
+ 'Name' => 'Core',
+ 'Path' => 'core/',
+ 'Var' => 'adm',
+ 'Version' => '4.1.1',
+ 'Loaded' => 1,
+ 'LoadOrder' => 1,
+ 'TemplatePath' => '',
+ 'RootCat' => 0,
+ 'BuildDate' => 0,
+ );
+
+ $db->doInsert($fields_hash, TABLE_PREFIX.'Modules');
+ }
?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.1.2/admin/install/upgrades/inportal_upgrade_v4.1.0.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.1.2.1
\ No newline at end of property
+1.1.2.2
\ No newline at end of property

Event Timeline