Index: branches/5.2.x/core/units/helpers/language_import_helper.php =================================================================== diff -u -N -r14092 -r14095 --- branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 14092) +++ branches/5.2.x/core/units/helpers/language_import_helper.php (.../language_import_helper.php) (revision 14095) @@ -1,6 +1,6 @@ _debugMode) { - $start_time = getmicrotime(); + $start_time = microtime(true); $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '")'); } @@ -191,7 +191,7 @@ } if ($this->_debugMode) { - $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '"): ' . (getmicrotime() - $start_time)); + $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '"): ' . (microtime(true) - $start_time)); } return true; @@ -546,7 +546,7 @@ function _parseXML($filename) { if ($this->_debugMode) { - $start_time = getmicrotime(); + $start_time = microtime(true); $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '")'); } @@ -566,7 +566,7 @@ } if ($this->_debugMode) { - $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '"): ' . (getmicrotime() - $start_time)); + $this->Application->Debugger->appendHTML(__CLASS__ . '::' . __FUNCTION__ . '("' . $filename . '"): ' . (microtime(true) - $start_time)); } return true; @@ -619,7 +619,7 @@ break; default: - trigger_error('Unknown prefix "' . $prefix . '" during language pack import', E_USER_ERROR); + throw new Exception('Unknown prefix "' . $prefix . '" during language pack import'); break; } @@ -724,13 +724,13 @@ } if ($this->_debugMode) { - $start_time = getmicrotime(); + $start_time = microtime(true); } $this->_processPhrases($sub_node->firstChild, $language_id, $fields_hash['Encoding']); if ($this->_debugMode) { - $this->Application->Debugger->appendHTML(__CLASS__ . '::' . '_processPhrases: ' . (getmicrotime() - $start_time)); + $this->Application->Debugger->appendHTML(__CLASS__ . '::' . '_processPhrases: ' . (microtime(true) - $start_time)); } } break;