Skip to content
Snippets Groups Projects
Commit 758a9826 authored by Nicoletta Maia's avatar Nicoletta Maia
Browse files

Issue: manage.php file migrate fails when files have size=0

parent acac3707
No related branches found
No related tags found
No related merge requests found
......@@ -25,12 +25,15 @@ class BaseError extends Exception {
global $ost;
parent::__construct(__($message));
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
if ($ost && $ost->getConfig()->getLogLevel() == 3)
$message .= "\n\n" . $this->getBacktrace();
if ($ost) {
$message = str_replace(ROOT_DIR, '(root)/', _S($message));
$ost->logError($this->getTitle(), $message, static::$sendAlert);
if ($ost->getConfig()->getLogLevel() == 3)
$message .= "\n\n" . $this->getBacktrace();
$ost->logError($this->getTitle(), $message, static::$sendAlert);
}
}
function getTitle() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment