mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-27 17:00:52 +01:00
Fix: substitute deprecated string interning syntax
This commit is contained in:
parent
c3de90075e
commit
c91c58ed07
@ -1614,7 +1614,7 @@ function checkMute() {
|
|||||||
|
|
||||||
if ($config['cache']['enabled']) {
|
if ($config['cache']['enabled']) {
|
||||||
// Cached mute?
|
// 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()));
|
error(sprintf($config['error']['youaremuted'], $mute['time'] + $mutetime - time()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1633,8 +1633,8 @@ function checkMute() {
|
|||||||
|
|
||||||
if ($mute['time'] + $mutetime > time()) {
|
if ($mute['time'] + $mutetime > time()) {
|
||||||
if ($config['cache']['enabled']) {
|
if ($config['cache']['enabled']) {
|
||||||
cache::set("mute_${_SERVER['REMOTE_ADDR']}", $mute, $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());
|
cache::set("mutetime_{$_SERVER['REMOTE_ADDR']}", $mutetime, $mute['time'] + $mutetime - time());
|
||||||
}
|
}
|
||||||
// Not expired yet
|
// Not expired yet
|
||||||
error(sprintf($config['error']['youaremuted'], $mute['time'] + $mutetime - time()));
|
error(sprintf($config['error']['youaremuted'], $mute['time'] + $mutetime - time()));
|
||||||
|
@ -1280,7 +1280,7 @@ function mod_move_reply($originBoard, $postID) {
|
|||||||
// trigger themes
|
// trigger themes
|
||||||
rebuildThemes('post', $targetBoard);
|
rebuildThemes('post', $targetBoard);
|
||||||
// mod log
|
// 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
|
// return to original board
|
||||||
openBoard($originBoard);
|
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
|
// build new thread
|
||||||
buildThread($newID);
|
buildThread($newID);
|
||||||
|
Loading…
Reference in New Issue
Block a user