diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-27 21:24:15 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-27 21:24:15 -0500 |
commit | 20138aba7214bbcc6e90a5787d33521f8f5ed4e3 (patch) | |
tree | fda47f7806782258339175c53e520c95e2bc7239 /etc/inc | |
parent | b6693b01cc8a27c082648b868c20b8c25378baad (diff) | |
download | pfsense-20138aba7214bbcc6e90a5787d33521f8f5ed4e3.zip pfsense-20138aba7214bbcc6e90a5787d33521f8f5ed4e3.tar.gz |
Only show files with .pat in them Resolves #171
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/shaper.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index fc6718c..1ada974 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -3608,9 +3608,7 @@ function generate_protocols_array() { $protocols = return_dir_as_array("/usr/local/share/protocols"); if(is_array($protocols)) { foreach($protocols as $key => $proto) { - if($proto == "LICENSE") - continue; - if (strstr($proto, ".pat") != false) + if (strstr($proto, ".pat")) $protocols[$key] =& str_replace(".pat", "", $proto); } sort($protocols); |