diff options
author | heper <heper@users.noreply.github.com> | 2015-12-05 01:23:51 +0100 |
---|---|---|
committer | heper <heper@users.noreply.github.com> | 2015-12-05 01:23:51 +0100 |
commit | 0a0447de46ba730c3d7d55b450cec560cd94c00a (patch) | |
tree | fe00313cf344bb964eaf6b64516a909ff88c168c /src | |
parent | 170e4beadc7603b2b8442dd77804a9be5c74bd92 (diff) | |
download | pfsense-0a0447de46ba730c3d7d55b450cec560cd94c00a.zip pfsense-0a0447de46ba730c3d7d55b450cec560cd94c00a.tar.gz |
proposed fix breadcrumb pkg xml
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 03c4f3a..c00f929 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -285,20 +285,6 @@ if ($_POST) { } } -if ($pkg['title'] != "") { - $edit = ($only_edit ? '' : ": " . gettext("Edit")); - $pgtitle = $pkg['title'] . $edit; -} else { - $pgtitle = gettext("Package Editor"); -} - -if ($pkg['custom_php_after_head_command']) { - $closehead = false; - include("head.inc"); - eval($pkg['custom_php_after_head_command']); -} else { - include("head.inc"); -} // Turn an embedded table into a bootstrap class table. This is for backward compatibility. // We remove any table attributes in the XML and replace them with Bootstrap table classes @@ -529,12 +515,14 @@ function parse_package_templates() { } } -// Start of page display -if ($input_errors) - print_input_errors($input_errors); +//breadcrumb +if ($pkg['title'] != "") { + $edit = ($only_edit ? '' : " / " . gettext("Edit")); + $pgtitle = array($pkg['title'], $edit); +} else { + $pgtitle = array(gettext("Package Editor")); +} -if ($savemsg) - print_info_box($savemsg, 'success'); // Create any required tabs if ($pkg['tabs'] != "") { @@ -548,6 +536,7 @@ if ($pkg['tabs'] != "") { if (isset($tab['active'])) { $active = true; + $pgtitle[] = $tab['text'] ; } else { $active = false; } @@ -586,12 +575,28 @@ if ($pkg['tabs'] != "") { } ksort($tab_array); +} +if ($pkg['custom_php_after_head_command']) { + $closehead = false; + include("head.inc"); + eval($pkg['custom_php_after_head_command']); +} else { + include("head.inc"); +} +if(isset($tab_array)) { foreach ($tab_array as $tabid => $tab) { display_top_tabs($tab); //, $no_drop_down, $tabid); } } +// Start of page display +if ($input_errors) + print_input_errors($input_errors); + +if ($savemsg) + print_info_box($savemsg, 'success'); + $cols = 0; $savevalue = gettext("Save"); if ($pkg['savetext'] != "") { |