Skip to content

Commit efc329c

Browse files
committed
Fixes
* Fix of error messages not showing in cycles * Fix of missing confirmation prompt
1 parent 42977d6 commit efc329c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

admin.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@
7979

8080
startMeasure('accelerationProcess');
8181
if ((!defined('DISABLE_PANEL_ACCELERATION') || DISABLE_PANEL_ACCELERATION != 1)) {
82-
//$result = preg_replace('/href="(\/admin\.php.+?)">/is','href="\1" onclick="return partLoad(this.href);">',$result);
83-
$result = str_replace(' href="/admin.php?', ' onclick="return partLoad(this.href);" href="/admin.php?', $result);
82+
$result = preg_replace('/href="(\/admin\.php.+?)">/is', 'href="\1" onclick="return partLoad(this.href);">', $result);
8483
}
8584
endMeasure('accelerationProcess');
8685

lib/errors.class.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ public function __construct($description, $stop = 0)
9191

9292
function majordomoSaveError($details, $type, $filename = '')
9393
{
94-
return false; // to-do: comment for debug
95-
96-
//dprint($filename .' '.$type.': '.$details,false);
97-
94+
if (isset($_SERVER['REQUEST_URI'])) {
95+
return false; // to-do: comment for debug
96+
}
97+
dprint($filename . ' ' . $type . ': ' . $details, false);
9898
if ($filename) {
99-
DebMes($details, $type.'_'.basename($filename));
99+
//DebMes($details, $type . '_' . basename($filename));
100100
}
101101
}
102102

0 commit comments

Comments
 (0)