Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F802432
custom
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
Sun, Feb 23, 11:25 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Feb 25, 11:25 PM (1 d, 11 h)
Engine
blob
Format
Raw Data
Handle
574486
Attached To
rMCUS Modules.Custom
custom
View Options
Index: branches/1.2.x/install.php
===================================================================
--- branches/1.2.x/install.php (revision 16484)
+++ branches/1.2.x/install.php (revision 16485)
@@ -1,38 +1,38 @@
<?php
$module_folder = 'modules/custom';
if ( !defined('IS_INSTALL') ) {
// separate module install
define('IS_INSTALL', 1);
define('ADMIN', 1);
define('FULL_PATH', realpath(dirname(__FILE__) . '/../..'));
include_once(FULL_PATH . '/core/kernel/startup.php');
require_once FULL_PATH . '/core/install/install_toolkit.php';
$constants_file = FULL_PATH . '/' . $module_folder . '/constants.php';
if ( file_exists($constants_file) ) {
require_once $constants_file;
}
$toolkit = new kInstallToolkit();
}
else {
// install, using installation wizard
$toolkit =& $this->toolkit;
/* @var $toolkit kInstallToolkit */
}
$application =& kApplication::Instance();
$application->Init();
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');
-$toolkit->ImportLanguage('/' . $module_folder . '/install/english');
+$toolkit->ImportLanguage('/' . $module_folder . '/install/english', isset($constants_file));
-$toolkit->finalizeModuleInstall($module_folder, false);
\ No newline at end of file
+$toolkit->finalizeModuleInstall($module_folder, false);
Event Timeline
Log In to Comment