diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-14 13:52:50 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-14 13:52:50 -0500 |
commit | 9ec7699b6a2dfa4b7db87937e39aa2c93aa7eaf7 (patch) | |
tree | 17c5926d87d19e3fa65b909c1ae1000fcec09089 | |
parent | 4a457d8da1fe721924436a27e70e94ac4209cd6e (diff) | |
download | pfsense-9ec7699b6a2dfa4b7db87937e39aa2c93aa7eaf7.zip pfsense-9ec7699b6a2dfa4b7db87937e39aa2c93aa7eaf7.tar.gz |
Parse package title, splitting into an array delineated by '/'.
So if the package title is "Services/Magic" the $pgtitle will be array("Services", "Magic") and the breadcrumb display will be as expected.
-rw-r--r-- | src/usr/local/pkg/miniupnpd.xml | 2 | ||||
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/usr/local/pkg/miniupnpd.xml b/src/usr/local/pkg/miniupnpd.xml index 33d8ac4..b67a60d 100644 --- a/src/usr/local/pkg/miniupnpd.xml +++ b/src/usr/local/pkg/miniupnpd.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> <packagegui> - <title>Services: UPnP & NAT-PMP</title> + <title>Services/UPnP & NAT-PMP</title> <name>miniupnpd</name> <version>20100712</version> <savetext>Change</savetext> diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 73e8c37..304a781 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -520,7 +520,11 @@ if ($pkg['title'] != "") { if(!$only_edit) { $pgtitle = array($pkg['title'], gettext("Edit")); } else { + if (strpos($pkg['title'], '/')) { + $pgtitle = explode('/', $pkg['title']); + } else { $pgtitle = array(gettext("Package"), $pkg['title']); + } } } else { $pgtitle = array(gettext("Package"), gettext("Editor")); |