Index: branches/1.2.x/install.php =================================================================== diff -u -N -r14686 -r15643 --- branches/1.2.x/install.php (.../install.php) (revision 14686) +++ branches/1.2.x/install.php (.../install.php) (revision 15643) @@ -1,32 +1,38 @@ 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(); - $toolkit->RunSQL('/' . $module_folder .'/install/install_schema.sql'); - $toolkit->RunSQL('/' . $module_folder .'/install/install_data.sql'); - $toolkit->ImportLanguage('/' . $module_folder .'/install/english'); +if ( $application->RecallVar('user_id') != USER_ROOT ) { + die('restricted access!'); +} - $toolkit->finalizeModuleInstall($module_folder, false); \ No newline at end of file +$toolkit->RunSQL('/' . $module_folder . '/install/install_schema.sql'); +$toolkit->RunSQL('/' . $module_folder . '/install/install_data.sql'); +$toolkit->ImportLanguage('/' . $module_folder . '/install/english'); + +$toolkit->finalizeModuleInstall($module_folder, false); \ No newline at end of file