Mercurial > SimpleWebPresenter
diff filters.inc @ 47:66382989353f
Extract baseDir only once.
Function for generating cacheset.
Added logger functionality.
Removed hardcoded location for flagScript.
BUGFIX: masterdocument was not added to the cacheset.
BUGFIX: When two options existed next to eachother, the last was not
read.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 08 Oct 2012 17:35:08 +0200 |
| parents | 15879e2aab65 |
| children | 2cfea6e84694 |
line wrap: on
line diff
--- a/filters.inc Mon Oct 08 15:49:28 2012 +0200 +++ b/filters.inc Mon Oct 08 17:35:08 2012 +0200 @@ -37,8 +37,11 @@ if ($active) $langbar .= '<a href="'.genUrl($options->getUrlParams(), array( 'lang' => $l), array('lang', 'name') ) . '">'; + //$flagUrl = "http://dev.bfginvest.no/php/flag.php"; + $flagUrl = $options->getFlagUrl(); + $langbar .= " - <img src=\"http://dev.bfginvest.no/php/flag.php?lang=${l}&active=${active}\" width=\"20\" height=\"16\" alt=\"Norsk versjon - inaktiv\" title=\"Norsk\"/>"; + <img src=\"${flagUrl}?lang=${l}&active=${active}\" width=\"20\" height=\"16\" alt=\"Norsk versjon - inaktiv\" title=\"Norsk\"/>"; if ($active) $langbar .= "</a>";
