$this->getInstalledFiles(WCF_DIR);
$acpTemplateInserts = $fileInserts = array();
+ file_put_contents(WCF_DIR.'__wcfSetupPerformance.log', "Logging files:\n");
+ $start = microtime(true);
foreach (self::$installedFiles as $file) {
$match = array();
if (preg_match('!/acp/templates/([^/]+)\.tpl$!', $file, $match)) {
$fileInserts[] = StringUtil::replace(WCF_DIR, '', $file);
}
}
-
+ file_put_contents(WCF_DIR.'__wcfSetupPerformance.log', "\tRead files: " . round(microtime(true) - $start, 3) . "\n", FILE_APPEND);
+ $start = microtime(true);
// save acp template log
if (!empty($acpTemplateInserts)) {
$sql = "INSERT INTO wcf".WCF_N."_acp_template
}
self::getDB()->commitTransaction();
}
-
+ file_put_contents(WCF_DIR.'__wcfSetupPerformance.log', "\tRegistered ACP templates: " . round(microtime(true) - $start, 3) . "\n", FILE_APPEND);
+ $start = microtime(true);
// save file log
if (!empty($fileInserts)) {
$sql = "INSERT INTO wcf".WCF_N."_package_installation_file_log
}
self::getDB()->commitTransaction();
}
-
+ file_put_contents(WCF_DIR.'__wcfSetupPerformance.log', "\tRegistered files: " . round(microtime(true) - $start, 3) . "\n", FILE_APPEND);
$this->gotoNextStep('installLanguage');
}
protected function installLanguage() {
$this->initDB();
+ $start = microtime(true);
foreach (self::$selectedLanguages as $language) {
// get language.xml file name
$filename = TMP_DIR.'install/lang/'.$language.'.xml';
// import xml
LanguageEditor::importFromXML($xml, 0);
}
-
+ file_put_contents(WCF_DIR.'__wcfSetupPerformance.log', "\nInstalled languages: " . round(microtime(true) - $start, 3) . "\n", FILE_APPEND);
// set default language
$language = LanguageFactory::getInstance()->getLanguageByCode(in_array(self::$selectedLanguageCode, self::$selectedLanguages) ? self::$selectedLanguageCode : self::$selectedLanguages[0]);
LanguageFactory::getInstance()->makeDefault($language->languageID);