diff --git a/inc/functions.php b/inc/functions.php index 50e0ca38..2f23ef09 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -1614,7 +1614,7 @@ function checkMute() { if ($config['cache']['enabled']) { // Cached mute? - if (($mute = cache::get("mute_${_SERVER['REMOTE_ADDR']}")) && ($mutetime = cache::get("mutetime_${_SERVER['REMOTE_ADDR']}"))) { + if (($mute = cache::get("mute_{$_SERVER['REMOTE_ADDR']}")) && ($mutetime = cache::get("mutetime_{$_SERVER['REMOTE_ADDR']}"))) { error(sprintf($config['error']['youaremuted'], $mute['time'] + $mutetime - time())); } } @@ -1633,8 +1633,8 @@ function checkMute() { if ($mute['time'] + $mutetime > time()) { if ($config['cache']['enabled']) { - cache::set("mute_${_SERVER['REMOTE_ADDR']}", $mute, $mute['time'] + $mutetime - time()); - cache::set("mutetime_${_SERVER['REMOTE_ADDR']}", $mutetime, $mute['time'] + $mutetime - time()); + cache::set("mute_{$_SERVER['REMOTE_ADDR']}", $mute, $mute['time'] + $mutetime - time()); + cache::set("mutetime_{$_SERVER['REMOTE_ADDR']}", $mutetime, $mute['time'] + $mutetime - time()); } // Not expired yet error(sprintf($config['error']['youaremuted'], $mute['time'] + $mutetime - time())); diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 1e803424..8a651f51 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1280,7 +1280,7 @@ function mod_move_reply($originBoard, $postID) { // trigger themes rebuildThemes('post', $targetBoard); // mod log - modLog("Moved post #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard); + modLog("Moved post #{$postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#{$newID})", $originBoard); // return to original board openBoard($originBoard); @@ -1457,7 +1457,7 @@ function mod_move($originBoard, $postID) { } } - modLog("Moved thread #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard); + modLog("Moved thread #{$postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#{$newID})", $originBoard); // build new thread buildThread($newID);