@@ -16,20 +16,20 @@ |
||
16 | 16 | * @version $Id$ |
17 | 17 | */ |
18 | 18 | |
19 | -define('_MI_LOGGER_NAME','Logger'); |
|
20 | -define('_MI_LOGGER_DSC','Legacy style error reporting and performance analysis'); |
|
19 | +define('_MI_LOGGER_NAME', 'Logger'); |
|
20 | +define('_MI_LOGGER_DSC', 'Legacy style error reporting and performance analysis'); |
|
21 | 21 | |
22 | -define('_MI_LOGGER_ENABLE',"Display Legacy Logger"); |
|
23 | -define('_MI_LOGGER_POPUP',"Use Popup Window"); |
|
24 | -define('_MI_LOGGER_SMARTYDEBUG',"Enable Smarty Debug"); |
|
22 | +define('_MI_LOGGER_ENABLE', "Display Legacy Logger"); |
|
23 | +define('_MI_LOGGER_POPUP', "Use Popup Window"); |
|
24 | +define('_MI_LOGGER_SMARTYDEBUG', "Enable Smarty Debug"); |
|
25 | 25 | |
26 | -define('_MI_LOGGER_UCONF_CAT_OPT','Options'); |
|
27 | -define('_MI_LOGGER_UCONF_CAT_OPT_DESC','Legacy Logger Options'); |
|
26 | +define('_MI_LOGGER_UCONF_CAT_OPT', 'Options'); |
|
27 | +define('_MI_LOGGER_UCONF_CAT_OPT_DESC', 'Legacy Logger Options'); |
|
28 | 28 | |
29 | -define('_MI_LOGGER_UCONF_ENABLE_BAR','Display Legacy Logger'); |
|
30 | -define('_MI_LOGGER_UCONF_POPUP',"Use Popup Window"); |
|
31 | -define('_MI_LOGGER_UCONF_ENABLE_SMARTY','Enable Smarty Debug'); |
|
29 | +define('_MI_LOGGER_UCONF_ENABLE_BAR', 'Display Legacy Logger'); |
|
30 | +define('_MI_LOGGER_UCONF_POPUP', "Use Popup Window"); |
|
31 | +define('_MI_LOGGER_UCONF_ENABLE_SMARTY', 'Enable Smarty Debug'); |
|
32 | 32 | |
33 | -define('_MI_LOGGER_ADMENU1','Home'); |
|
34 | -define('_MI_LOGGER_ADMENU2','About'); |
|
35 | -define('_MI_LOGGER_ADMENU3','Permissions'); |
|
33 | +define('_MI_LOGGER_ADMENU1', 'Home'); |
|
34 | +define('_MI_LOGGER_ADMENU2', 'About'); |
|
35 | +define('_MI_LOGGER_ADMENU3', 'Permissions'); |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @version $Id$ |
17 | 17 | */ |
18 | 18 | |
19 | -define('_MA_LOGGER_PERMISSION_FORM','Legacy Logger Usage Permissions'); |
|
20 | -define('_MA_LOGGER_PERMISSION_GROUPS','Select groups that may use the Logger'); |
|
21 | -define('_MA_LOGGER_FORM_SUBMIT','Save'); |
|
22 | -define('_MA_LOGGER_FORM_PROCESSED','Permissions updated.'); |
|
19 | +define('_MA_LOGGER_PERMISSION_FORM', 'Legacy Logger Usage Permissions'); |
|
20 | +define('_MA_LOGGER_PERMISSION_GROUPS', 'Select groups that may use the Logger'); |
|
21 | +define('_MA_LOGGER_FORM_SUBMIT', 'Save'); |
|
22 | +define('_MA_LOGGER_FORM_PROCESSED', 'Permissions updated.'); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function configs() |
60 | 60 | { |
61 | - $config[]=array( |
|
61 | + $config[] = array( |
|
62 | 62 | 'name' => 'logger_enable', |
63 | 63 | 'title' => '_MI_LOGGER_UCONF_ENABLE_BAR', |
64 | 64 | 'description' => '', |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | 'category' => 'cat_options' |
81 | 81 | ); |
82 | 82 | |
83 | - $config[]=array( |
|
83 | + $config[] = array( |
|
84 | 84 | 'name' => 'debug_smarty_enable', |
85 | 85 | 'title' => '_MI_LOGGER_UCONF_ENABLE_SMARTY', |
86 | 86 | 'description' => '', |
@@ -300,8 +300,8 @@ discard block |
||
300 | 300 | if ($this->activated) { |
301 | 301 | $this->log( |
302 | 302 | LogLevel::ERROR, |
303 | - 'Exception: ' . $e->getMessage() . ' - ' . |
|
304 | - $this->sanitizePath($e->getFile()) . ' ' . $e->getLine() |
|
303 | + 'Exception: '.$e->getMessage().' - '. |
|
304 | + $this->sanitizePath($e->getFile()).' '.$e->getLine() |
|
305 | 305 | ); |
306 | 306 | } |
307 | 307 | } |
@@ -362,9 +362,9 @@ discard block |
||
362 | 362 | $pattern = '<!--<xo-logger-output>-->'; |
363 | 363 | $pos = strpos($output, $pattern); |
364 | 364 | if ($pos !== false) { |
365 | - return substr($output, 0, $pos) . $log . substr($output, $pos + strlen($pattern)); |
|
365 | + return substr($output, 0, $pos).$log.substr($output, $pos + strlen($pattern)); |
|
366 | 366 | } else { |
367 | - return $output . $log; |
|
367 | + return $output.$log; |
|
368 | 368 | } |
369 | 369 | } |
370 | 370 | |
@@ -387,15 +387,15 @@ discard block |
||
387 | 387 | $content = ' |
388 | 388 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
389 | 389 | <head> |
390 | - <meta http-equiv="content-language" content="' . XoopsLocale::getLangCode() . '" /> |
|
391 | - <meta http-equiv="content-type" content="text/html; charset=' . XoopsLocale::getCharset() . '" /> |
|
392 | - <title>' . $xoops->getConfig('sitename') . ' - ' . _MD_LOGGER_DEBUG . ' </title> |
|
390 | + <meta http-equiv="content-language" content="' . XoopsLocale::getLangCode().'" /> |
|
391 | + <meta http-equiv="content-type" content="text/html; charset=' . XoopsLocale::getCharset().'" /> |
|
392 | + <title>' . $xoops->getConfig('sitename').' - '._MD_LOGGER_DEBUG.' </title> |
|
393 | 393 | <meta name="generator" content="XOOPS" /> |
394 | - <link rel="stylesheet" type="text/css" media="all" href="' . $xoops->getCss($xoops->getConfig('theme_set')) . '" /> |
|
394 | + <link rel="stylesheet" type="text/css" media="all" href="' . $xoops->getCss($xoops->getConfig('theme_set')).'" /> |
|
395 | 395 | </head> |
396 | -<body>' . $dump . ' |
|
396 | +<body>' . $dump.' |
|
397 | 397 | <div style="text-align:center;"> |
398 | - <input class="formButton" value="' . XoopsLocale::A_CLOSE . '" type="button" onclick="javascript:window.close();" /> |
|
398 | + <input class="formButton" value="' . XoopsLocale::A_CLOSE.'" type="button" onclick="javascript:window.close();" /> |
|
399 | 399 | </div> |
400 | 400 | '; |
401 | 401 | $ret .= ' |
@@ -405,8 +405,8 @@ discard block |
||
405 | 405 | '; |
406 | 406 | $lines = preg_split("/(\r\n|\r|\n)( *)/", $content); |
407 | 407 | foreach ($lines as $line) { |
408 | - $ret .= "\n" . 'debug_window.document.writeln("' |
|
409 | - . str_replace(array('"', '</'), array('\"', '<\/'), $line) . '");'; |
|
408 | + $ret .= "\n".'debug_window.document.writeln("' |
|
409 | + . str_replace(array('"', '</'), array('\"', '<\/'), $line).'");'; |
|
410 | 410 | } |
411 | 411 | $ret .= ' |
412 | 412 | debug_window.focus(); |
@@ -434,11 +434,11 @@ discard block |
||
434 | 434 | $memory = 0; |
435 | 435 | |
436 | 436 | if (function_exists('memory_get_usage')) { |
437 | - $memory = memory_get_usage() . ' bytes'; |
|
437 | + $memory = memory_get_usage().' bytes'; |
|
438 | 438 | } else { |
439 | 439 | if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { |
440 | 440 | $out = array(); |
441 | - exec('tasklist /FI "PID eq ' . getmypid() . '" /FO LIST', $out); |
|
441 | + exec('tasklist /FI "PID eq '.getmypid().'" /FO LIST', $out); |
|
442 | 442 | if (isset($out[5])) { |
443 | 443 | $memory = sprintf(_MD_LOGGER_MEM_ESTIMATED, substr($out[5], strpos($out[5], ':') + 1)); |
444 | 444 | } |
@@ -451,20 +451,20 @@ discard block |
||
451 | 451 | if (empty($mode)) { |
452 | 452 | $views = array('errors', 'deprecated', 'queries', 'blocks', 'extra'); |
453 | 453 | $ret .= "\n<div id=\"xo-logger-output\">\n<div id='xo-logger-tabs'>\n"; |
454 | - $ret .= "<a href='javascript:xoSetLoggerView(\"none\")'>" . _MD_LOGGER_NONE . "</a>\n"; |
|
455 | - $ret .= "<a href='javascript:xoSetLoggerView(\"\")'>" . _MD_LOGGER_ALL . "</a>\n"; |
|
454 | + $ret .= "<a href='javascript:xoSetLoggerView(\"none\")'>"._MD_LOGGER_NONE."</a>\n"; |
|
455 | + $ret .= "<a href='javascript:xoSetLoggerView(\"\")'>"._MD_LOGGER_ALL."</a>\n"; |
|
456 | 456 | foreach ($views as $view) { |
457 | 457 | $count = count($this->$view); |
458 | - $ret .= "<a href='javascript:xoSetLoggerView(\"$view\")'>" . constant('_MD_LOGGER_' . strtoupper($view)) . " ($count)</a>\n"; |
|
458 | + $ret .= "<a href='javascript:xoSetLoggerView(\"$view\")'>".constant('_MD_LOGGER_'.strtoupper($view))." ($count)</a>\n"; |
|
459 | 459 | } |
460 | 460 | $count = count($this->logstart); |
461 | - $ret .= "<a href='javascript:xoSetLoggerView(\"timers\")'>" . _MD_LOGGER_TIMERS . "($count)</a>\n"; |
|
461 | + $ret .= "<a href='javascript:xoSetLoggerView(\"timers\")'>"._MD_LOGGER_TIMERS."($count)</a>\n"; |
|
462 | 462 | $ret .= "</div>\n"; |
463 | 463 | } |
464 | 464 | |
465 | 465 | if (empty($mode) || $mode === 'errors') { |
466 | 466 | $class = 'even'; |
467 | - $ret .= '<table id="xo-logger-errors" class="outer"><thead><tr><th>' . _MD_LOGGER_ERRORS . '</th></tr></thead><tbody>'; |
|
467 | + $ret .= '<table id="xo-logger-errors" class="outer"><thead><tr><th>'._MD_LOGGER_ERRORS.'</th></tr></thead><tbody>'; |
|
468 | 468 | foreach ($this->errors as $error) { |
469 | 469 | $ret .= "\n<tr><td class='$class'>"; |
470 | 470 | $ret .= $error; |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | |
477 | 477 | if (empty($mode) || $mode === 'deprecated') { |
478 | 478 | $class = 'even'; |
479 | - $ret .= '<table id="xo-logger-deprecated" class="outer"><thead><tr><th>' . _MD_LOGGER_DEPRECATED . '</th></tr></thead><tbody>'; |
|
479 | + $ret .= '<table id="xo-logger-deprecated" class="outer"><thead><tr><th>'._MD_LOGGER_DEPRECATED.'</th></tr></thead><tbody>'; |
|
480 | 480 | foreach ($this->deprecated as $message) { |
481 | 481 | $ret .= "\n<tr><td class='$class'>"; |
482 | 482 | $ret .= $message; |
@@ -488,42 +488,42 @@ discard block |
||
488 | 488 | |
489 | 489 | if (empty($mode) || $mode === 'queries') { |
490 | 490 | $class = 'even'; |
491 | - $ret .= '<table id="xo-logger-queries" class="outer"><thead><tr><th>' . _MD_LOGGER_QUERIES . '</th></tr></thead><tbody>'; |
|
492 | - $pattern = '/\b' . preg_quote(\XoopsBaseConfig::get('db-prefix')) . '\_/i'; |
|
491 | + $ret .= '<table id="xo-logger-queries" class="outer"><thead><tr><th>'._MD_LOGGER_QUERIES.'</th></tr></thead><tbody>'; |
|
492 | + $pattern = '/\b'.preg_quote(\XoopsBaseConfig::get('db-prefix')).'\_/i'; |
|
493 | 493 | |
494 | 494 | foreach ($this->queries as $q) { |
495 | 495 | $sql = preg_replace($pattern, '', $q['sql']); |
496 | 496 | $query_time = isset($q['query_time']) ? sprintf('%0.6f - ', $q['query_time']) : ''; |
497 | 497 | |
498 | 498 | if (isset($q['error'])) { |
499 | - $ret .= '<tr class="' . $class . '"><td><span style="color:#ff0000;">' . $query_time . htmlentities($sql) . '<br /><strong>Error number:</strong> ' . $q['errno'] . '<br /><strong>Error message:</strong> ' . $q['error'] . '</span></td></tr>'; |
|
499 | + $ret .= '<tr class="'.$class.'"><td><span style="color:#ff0000;">'.$query_time.htmlentities($sql).'<br /><strong>Error number:</strong> '.$q['errno'].'<br /><strong>Error message:</strong> '.$q['error'].'</span></td></tr>'; |
|
500 | 500 | } else { |
501 | - $ret .= '<tr class="' . $class . '"><td>' . $query_time . htmlentities($sql) . '</td></tr>'; |
|
501 | + $ret .= '<tr class="'.$class.'"><td>'.$query_time.htmlentities($sql).'</td></tr>'; |
|
502 | 502 | } |
503 | 503 | |
504 | 504 | $class = ($class === 'odd') ? 'even' : 'odd'; |
505 | 505 | } |
506 | - $ret .= '</tbody><tfoot><tr class="foot"><td>' . _MD_LOGGER_TOTAL . ': <span style="color:#ff0000;">' . count($this->queries) . '</span></td></tr></tfoot></table>'; |
|
506 | + $ret .= '</tbody><tfoot><tr class="foot"><td>'._MD_LOGGER_TOTAL.': <span style="color:#ff0000;">'.count($this->queries).'</span></td></tr></tfoot></table>'; |
|
507 | 507 | } |
508 | 508 | if (empty($mode) || $mode === 'blocks') { |
509 | 509 | $class = 'even'; |
510 | - $ret .= '<table id="xo-logger-blocks" class="outer"><thead><tr><th>' . _MD_LOGGER_BLOCKS . '</th></tr></thead><tbody>'; |
|
510 | + $ret .= '<table id="xo-logger-blocks" class="outer"><thead><tr><th>'._MD_LOGGER_BLOCKS.'</th></tr></thead><tbody>'; |
|
511 | 511 | foreach ($this->blocks as $b) { |
512 | 512 | if ($b['cached']) { |
513 | - $ret .= '<tr><td class="' . $class . '"><strong>' . $b['name'] . ':</strong> ' . sprintf(_MD_LOGGER_CACHED, (int)($b['cachetime'])) . '</td></tr>'; |
|
513 | + $ret .= '<tr><td class="'.$class.'"><strong>'.$b['name'].':</strong> '.sprintf(_MD_LOGGER_CACHED, (int)($b['cachetime'])).'</td></tr>'; |
|
514 | 514 | } else { |
515 | - $ret .= '<tr><td class="' . $class . '"><strong>' . $b['name'] . ':</strong> ' . _MD_LOGGER_NOT_CACHED . '</td></tr>'; |
|
515 | + $ret .= '<tr><td class="'.$class.'"><strong>'.$b['name'].':</strong> '._MD_LOGGER_NOT_CACHED.'</td></tr>'; |
|
516 | 516 | } |
517 | 517 | $class = ($class === 'odd') ? 'even' : 'odd'; |
518 | 518 | } |
519 | - $ret .= '</tbody><tfoot><tr class="foot"><td>' . _MD_LOGGER_TOTAL . ': <span style="color:#ff0000;">' . count($this->blocks) . '</span></td></tr></tfoot></table>'; |
|
519 | + $ret .= '</tbody><tfoot><tr class="foot"><td>'._MD_LOGGER_TOTAL.': <span style="color:#ff0000;">'.count($this->blocks).'</span></td></tr></tfoot></table>'; |
|
520 | 520 | } |
521 | 521 | if (empty($mode) || $mode === 'extra') { |
522 | 522 | $class = 'even'; |
523 | - $ret .= '<table id="xo-logger-extra" class="outer"><thead><tr><th>' . _MD_LOGGER_EXTRA . '</th></tr></thead><tbody>'; |
|
523 | + $ret .= '<table id="xo-logger-extra" class="outer"><thead><tr><th>'._MD_LOGGER_EXTRA.'</th></tr></thead><tbody>'; |
|
524 | 524 | foreach ($this->extra as $ex) { |
525 | - $ret .= '<tr><td class="' . $class . '"><strong>'; |
|
526 | - $ret .= htmlspecialchars($ex['name']) . ':</strong> ' . htmlspecialchars($ex['msg']); |
|
525 | + $ret .= '<tr><td class="'.$class.'"><strong>'; |
|
526 | + $ret .= htmlspecialchars($ex['name']).':</strong> '.htmlspecialchars($ex['msg']); |
|
527 | 527 | $ret .= '</td></tr>'; |
528 | 528 | $class = ($class === 'odd') ? 'even' : 'odd'; |
529 | 529 | } |
@@ -531,10 +531,10 @@ discard block |
||
531 | 531 | } |
532 | 532 | if (empty($mode) || $mode === 'timers') { |
533 | 533 | $class = 'even'; |
534 | - $ret .= '<table id="xo-logger-timers" class="outer"><thead><tr><th>' . _MD_LOGGER_TIMERS . '</th></tr></thead><tbody>'; |
|
534 | + $ret .= '<table id="xo-logger-timers" class="outer"><thead><tr><th>'._MD_LOGGER_TIMERS.'</th></tr></thead><tbody>'; |
|
535 | 535 | foreach ($this->logstart as $k => $v) { |
536 | - $ret .= '<tr><td class="' . $class . '"><strong>'; |
|
537 | - $ret .= sprintf(_MD_LOGGER_TIMETOLOAD, htmlspecialchars($k) . '</strong>', '<span style="color:#ff0000;">' . sprintf("%.03f", $this->dumpTime($k)) . '</span>'); |
|
536 | + $ret .= '<tr><td class="'.$class.'"><strong>'; |
|
537 | + $ret .= sprintf(_MD_LOGGER_TIMETOLOAD, htmlspecialchars($k).'</strong>', '<span style="color:#ff0000;">'.sprintf("%.03f", $this->dumpTime($k)).'</span>'); |
|
538 | 538 | $ret .= '</td></tr>'; |
539 | 539 | $class = ($class === 'odd') ? 'even' : 'odd'; |
540 | 540 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * @author Jan Pedersen |
24 | 24 | * @author Taiwen Jiang <[email protected]> |
25 | 25 | */ |
26 | -include __DIR__ . '/header.php'; |
|
26 | +include __DIR__.'/header.php'; |
|
27 | 27 | |
28 | 28 | $xoops = Xoops::getInstance(); |
29 | 29 | $xoops->header(); |
@@ -19,6 +19,6 @@ |
||
19 | 19 | * @author Taiwen Jiang <[email protected]> |
20 | 20 | */ |
21 | 21 | |
22 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
22 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
23 | 23 | |
24 | 24 | $xoops = Xoops::getInstance(); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | // paypal |
44 | 44 | $modversion['paypal'] = array(); |
45 | 45 | $modversion['paypal']['business'] = '[email protected]'; |
46 | -$modversion['paypal']['item_name'] = 'Donation : ' . _PM_MI_DESC; |
|
46 | +$modversion['paypal']['item_name'] = 'Donation : '._PM_MI_DESC; |
|
47 | 47 | $modversion['paypal']['amount'] = 0; |
48 | 48 | $modversion['paypal']['currency_code'] = 'USD'; |
49 | 49 |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * @author Taiwen Jiang <[email protected]> |
27 | 27 | */ |
28 | 28 | |
29 | -include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
29 | +include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
30 | 30 | |
31 | 31 | $xoops = Xoops::getInstance(); |
32 | 32 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | if (is_object($pm) && !$xoops->user->isAdmin() && ($pm->getVar('from_userid') != $xoops->user->getVar('uid')) |
50 | 50 | && ($pm->getVar('to_userid') != $xoops->user->getVar('uid')) |
51 | 51 | ) { |
52 | - $xoops->redirect(XOOPS_URL . '/modules/' . $xoops->module->getVar("dirname", "n") . '/index.php', 2, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
52 | + $xoops->redirect(XOOPS_URL.'/modules/'.$xoops->module->getVar("dirname", "n").'/index.php', 2, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | if (is_object($pm) && !empty($_POST['action'])) { |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | } |
114 | 114 | $res_message = isset($res_message) ? $res_message : (($res) ? _PM_ACTION_DONE : _PM_ACTION_ERROR); |
115 | - $xoops->redirect('viewpmsg.php?op=' . htmlspecialchars($_REQUEST['op']), 2, $res_message); |
|
115 | + $xoops->redirect('viewpmsg.php?op='.htmlspecialchars($_REQUEST['op']), 2, $res_message); |
|
116 | 116 | } |
117 | 117 | $start = !empty($_GET['start']) ? (int)($_GET['start']) : 0; |
118 | 118 | $total_messages = !empty($_GET['total_messages']) ? (int)($_GET['total_messages']) : 0; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public static function eventCorePmliteStart($args) |
36 | 36 | { |
37 | - header("location: ./modules/pm/pmlite.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
37 | + header("location: ./modules/pm/pmlite.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
38 | 38 | exit(); |
39 | 39 | } |
40 | 40 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function eventCoreReadpmsgStart($args) |
49 | 49 | { |
50 | - header("location: ./modules/pm/readpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
50 | + header("location: ./modules/pm/readpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
51 | 51 | exit(); |
52 | 52 | } |
53 | 53 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public static function eventCoreViewpmsgStart($args) |
62 | 62 | { |
63 | - header("location: ./modules/pm/viewpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
63 | + header("location: ./modules/pm/viewpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
64 | 64 | exit(); |
65 | 65 | } |
66 | 66 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public static function eventCoreServiceLocateUserMessage(Provider $provider) |
99 | 99 | { |
100 | - $path = dirname(__DIR__) . '/class/PMProvider.php'; |
|
100 | + $path = dirname(__DIR__).'/class/PMProvider.php'; |
|
101 | 101 | require $path; |
102 | 102 | $object = new PMProvider(); |
103 | 103 | $provider->register($object); |