Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1248282
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 21, 8:58 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Nov 23, 8:58 PM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
810954
Attached To
rINP In-Portal
in-portal
View Options
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
Log In to Comment