tazpanel diff lib/libtazpanel @ rev 539
html header cache: change title as well as sub-title
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Aug 31 11:09:25 2015 +0300 (2015-08-31) |
parents | 082b622cb781 |
children | 04c74e2d1c20 |
line diff
1.1 --- a/lib/libtazpanel Sun Aug 30 23:46:37 2015 +0300 1.2 +++ b/lib/libtazpanel Mon Aug 31 11:09:25 2015 +0300 1.3 @@ -260,7 +260,6 @@ 1.4 1.5 # Cache header 1.6 if [ ! -f "$header" ]; then 1.7 - SUBTITLE='@@SUBTITLE@@' 1.8 . ${PANEL}$HEADER > "$header" 1.9 cat >> "$header" <<EOT 1.10 <script type="text/javascript"> 1.11 @@ -269,7 +268,7 @@ 1.12 </script> 1.13 EOT 1.14 fi 1.15 - sed "s|@@SUBTITLE@@|$subtitle|" "$header" 1.16 + sed "s|@@TITLE@@|$TITLE|; s|@@SUBTITLE@@|$subtitle|" "$header" 1.17 1.18 # Show debug output 1.19 if [ "$DEBUG" -eq 1 ]; then