mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove more references to theme, ticket #5333
This commit is contained in:
parent
0292528692
commit
cf093b3544
@ -2,7 +2,6 @@
|
||||
<pfsense>
|
||||
<version>12.3</version>
|
||||
<lastchange/>
|
||||
<theme>pfsense_ng</theme>
|
||||
<system>
|
||||
<optimization>normal</optimization>
|
||||
<hostname>pfSense</hostname>
|
||||
|
||||
@ -68,7 +68,6 @@ $g = array(
|
||||
"hideplatform" => false,
|
||||
"hidedownloadbackup" => false,
|
||||
"hidebackupbeforeupgrade" => false,
|
||||
"disablethemeselection" => false,
|
||||
"disablehelpmenu" => false,
|
||||
"disablehelpicon" => false,
|
||||
"disablecrashreporter" => false,
|
||||
|
||||
@ -3979,6 +3979,10 @@ function upgrade_122_to_123() {
|
||||
if (isset($config['system']['altpkgrepo'])) {
|
||||
unset($config['system']['altpkgrepo']);
|
||||
}
|
||||
|
||||
if (isset($config['theme'])) {
|
||||
unset($config['theme']);
|
||||
}
|
||||
}
|
||||
|
||||
function upgrade_123_to_124() {
|
||||
|
||||
@ -89,8 +89,6 @@ foreach (scandir("/usr/local/www/classes/") as $file) {
|
||||
}
|
||||
}
|
||||
|
||||
$g['theme'] = get_current_theme();
|
||||
|
||||
/* Set the default interface language */
|
||||
if ($config['system']['language'] <> "") {
|
||||
$g['language'] = $config['system']['language'];
|
||||
@ -354,19 +352,6 @@ function print_info_box_np_undo($msg, $name = "apply", $value = "Apply changes",
|
||||
$nifty_redbox = "#990000";
|
||||
$nifty_blackbox = "#000000";
|
||||
|
||||
$themename = $g['theme'];
|
||||
|
||||
if (file_exists("/usr/local/www/themes/{$themename}/tabcontrols.php")) {
|
||||
$toeval = file_get_contents("/usr/local/www/themes/{$themename}/tabcontrols.php");
|
||||
eval($toeval);
|
||||
}
|
||||
|
||||
if (file_exists("/usr/local/www/themes/{$themename}/infobox.php")) {
|
||||
$toeval = file_get_contents("/usr/local/www/themes/{$themename}/infobox.php");
|
||||
eval($toeval);
|
||||
}
|
||||
|
||||
|
||||
if (!$savebutton) {
|
||||
$savebutton = "<td class=\"infoboxsave\"><input value=\"" . gettext("Close") . "\" type=\"button\" onclick=\"jQuery(this).parents('table[id=redboxtable]').hide();\" /></td>";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user