tazbug diff web/plugins/dashboard/dashboard.cgi @ rev 82
web: plugins dont need to source httphelper.sh
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Feb 17 23:16:08 2014 +0100 (2014-02-17) |
parents | 6144a840e058 |
children | f3aff0cd7229 |
line diff
1.1 --- a/web/plugins/dashboard/dashboard.cgi Tue Jan 07 23:41:29 2014 +0100 1.2 +++ b/web/plugins/dashboard/dashboard.cgi Mon Feb 17 23:16:08 2014 +0100 1.3 @@ -2,10 +2,8 @@ 1.4 # 1.5 # TazBug Plugin - Dashboard 1.6 # 1.7 -. /usr/lib/slitaz/httphelper 1.8 1.9 -case " $(GET) " in 1.10 - *\ dashboard\ *) 1.11 +if [ "$(GET dashboard)" ]; then 1.12 d="Dashboard" 1.13 users=$(ls -1 $PEOPLE | wc -l) 1.14 bugs=$(ls -1 $bugdir | wc -l) 1.15 @@ -61,5 +59,5 @@ 1.16 echo "<a href='?$p'>$PLUGIN</a> - $SHORT_DESC" 1.17 done 1.18 echo '</pre>' 1.19 - html_footer && exit 0 ;; 1.20 -esac 1.21 + html_footer && exit 0 1.22 +fi