mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Show $g['product_name'] on wizards
This commit is contained in:
parent
29721fe6a6
commit
fe4fc20bf0
@ -36,6 +36,7 @@
|
||||
##|-PRIV
|
||||
|
||||
|
||||
require("globals.inc");
|
||||
require("guiconfig.inc");
|
||||
require("functions.inc");
|
||||
require("filter.inc");
|
||||
@ -47,6 +48,8 @@ function gentitle_pkg($pgname) {
|
||||
return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname;
|
||||
}
|
||||
|
||||
global $g;
|
||||
|
||||
$stepid = htmlspecialchars($_GET['stepid']);
|
||||
if (isset($_POST['stepid']))
|
||||
$stepid = htmlspecialchars($_POST['stepid']);
|
||||
@ -75,9 +78,9 @@ if (!is_array($pkg)) {
|
||||
die;
|
||||
}
|
||||
|
||||
$title = $pkg['step'][$stepid]['title'];
|
||||
$description = $pkg['step'][$stepid]['description'];
|
||||
$totalsteps = $pkg['totalsteps'];
|
||||
$title = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['title']);
|
||||
$description = preg_replace("/pfSense/i", $g['product_name'], $pkg['step'][$stepid]['description']);
|
||||
$totalsteps = $pkg['totalsteps'];
|
||||
|
||||
if ($pkg['includefile'])
|
||||
require_once($pkg['includefile']);
|
||||
@ -119,9 +122,6 @@ if ($_POST) {
|
||||
$stepid = $totalsteps;
|
||||
}
|
||||
|
||||
$title = $pkg['step'][$stepid]['title'];
|
||||
$description = $pkg['step'][$stepid]['description'];
|
||||
|
||||
function update_config_field($field, $updatetext, $unset, $arraynum, $field_type) {
|
||||
global $config;
|
||||
$field_split = split("->",$field);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user