Only set thread if we can get thread when warning, and fix theme uninstallation
This commit is contained in:
parent
6c07ebad1b
commit
67ef23d758
|
@ -1940,7 +1940,7 @@ function mod_warning_post($board,$post, $token = false) {
|
|||
'token' => $security_token
|
||||
);
|
||||
|
||||
if($_GET['thread']) {
|
||||
if(isset($_GET['thread'])) {
|
||||
$args['thread'] = $_GET['thread'];
|
||||
}
|
||||
|
||||
|
@ -3200,7 +3200,7 @@ function mod_theme_uninstall($theme_name) {
|
|||
|
||||
// Clean cache
|
||||
Cache::delete("themes");
|
||||
Cache::delete("theme_settings_".$theme_name);
|
||||
Cache::delete("theme_settings_".$theme);
|
||||
|
||||
header('Location: ?/themes', true, $config['redirect_http']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue