Mercurial > SimpleWebPresenter
comparison filters.inc @ 37:da1726860524
Remove last global.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 04 Oct 2012 21:30:57 +0200 |
| parents | aec57ed6f5f6 |
| children | 9bdf3f8b487a |
comparison
equal
deleted
inserted
replaced
| 36:c3a61615a39c | 37:da1726860524 |
|---|---|
| 32 $output); | 32 $output); |
| 33 | 33 |
| 34 return $output; | 34 return $output; |
| 35 } | 35 } |
| 36 | 36 |
| 37 function addLangBar($input, $languages) | 37 function addLangBar($input, $options, $languages) |
| 38 { | 38 { |
| 39 $name=$GLOBALS['name']; | 39 $name = $options->getName(); |
| 40 $lang=$GLOBALS['lang']; | 40 $lang = $options->getLang(); |
| 41 // $languages = array("no","en"); | |
| 42 $langbar='<ul id="language-select">'; | 41 $langbar='<ul id="language-select">'; |
| 43 | 42 |
| 44 foreach($languages as $l) { | 43 foreach($languages as $l) { |
| 45 $active = ($l == $lang) ? 0 : 1; | 44 $active = ($l == $lang) ? 0 : 1; |
| 46 $langbar.= " | 45 $langbar.= " |
