forked from GithubBackups/vichan
infinity/smart-build: fix context
This commit is contained in:
parent
1670da07cb
commit
8a6a20bd9c
@ -641,17 +641,6 @@ EOT;
|
|||||||
eval(str_replace('flags.php', "$b/flags.php", preg_replace('/^\<\?php$/m', '', $config_file)));
|
eval(str_replace('flags.php', "$b/flags.php", preg_replace('/^\<\?php$/m', '', $config_file)));
|
||||||
// czaks: maybe reconsider using it, now that config is cached?
|
// czaks: maybe reconsider using it, now that config is cached?
|
||||||
|
|
||||||
// Clean the cache
|
|
||||||
if ($config['cache']['enabled']) {
|
|
||||||
cache::delete('board_' . $board['uri']);
|
|
||||||
cache::delete('all_boards');
|
|
||||||
|
|
||||||
cache::delete('config_' . $board['uri']);
|
|
||||||
cache::delete('events_' . $board['uri']);
|
|
||||||
|
|
||||||
unlink('tmp/cache/locale_' . $board['uri']);
|
|
||||||
}
|
|
||||||
|
|
||||||
// be smarter about rebuilds...only some changes really require us to rebuild all threads
|
// be smarter about rebuilds...only some changes really require us to rebuild all threads
|
||||||
if ($_config['captcha']['enabled'] != $config['captcha']['enabled']
|
if ($_config['captcha']['enabled'] != $config['captcha']['enabled']
|
||||||
|| $_config['new_thread_capt'] != $config['new_thread_capt'] /*New thread captcha - if toggling "enable captcha" requires this, toggling new thread capt does too, I guess.*/
|
|| $_config['new_thread_capt'] != $config['new_thread_capt'] /*New thread captcha - if toggling "enable captcha" requires this, toggling new thread capt does too, I guess.*/
|
||||||
@ -674,6 +663,16 @@ EOT;
|
|||||||
$query->execute() or error(db_error($query));
|
$query->execute() or error(db_error($query));
|
||||||
$board = $query->fetchAll()[0];
|
$board = $query->fetchAll()[0];
|
||||||
|
|
||||||
|
// Clean the cache
|
||||||
|
if ($config['cache']['enabled']) {
|
||||||
|
cache::delete('board_' . $board['uri']);
|
||||||
|
cache::delete('all_boards');
|
||||||
|
|
||||||
|
cache::delete('config_' . $board['uri']);
|
||||||
|
cache::delete('events_' . $board['uri']);
|
||||||
|
unlink('tmp/cache/locale_' . $board['uri']);
|
||||||
|
}
|
||||||
|
|
||||||
$css = @file_get_contents('stylesheets/board/' . $board['uri'] . '.css');
|
$css = @file_get_contents('stylesheets/board/' . $board['uri'] . '.css');
|
||||||
|
|
||||||
mod_page(_('Board configuration'), 'mod/settings.html', array('board'=>$board, 'css'=>prettify_textarea($css), 'token'=>make_secure_link_token('settings/'.$board['uri']), 'languages'=>$possible_languages,'allowed_urls'=>$config['allowed_offsite_urls']));
|
mod_page(_('Board configuration'), 'mod/settings.html', array('board'=>$board, 'css'=>prettify_textarea($css), 'token'=>make_secure_link_token('settings/'.$board['uri']), 'languages'=>$possible_languages,'allowed_urls'=>$config['allowed_offsite_urls']));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user