Changeset 259 in t29-www for lib/technikum29.php
- Timestamp:
- May 28, 2012, 6:07:42 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/technikum29.php
r255 r259 21 21 ); 22 22 23 $lang = "de"; # must be index in $languages 23 // try to determine the language from the file path 24 $lang = substr($file, 1, 2); 25 if(!in_array($lang, array_keys($languages))) $lang = "de"; # check if language exists 24 26 $lang_path = $languages[$lang][1]; # shorthand, relative to webroot. use "$webroot$lang_path" for local. 25 27 … … 35 37 "$lib/menu.php", 36 38 "$lib/messages.php", 37 "$lib/../de-v6/hauptnavigation.xml", 38 "$lib/../de-v6/sidebar.xml", 39 "$lib/../de-v6/news.php", 39 "$lib$lang_path/navigation.xml", 40 "$lib$lang_path/news.php", 40 41 ); 41 42
Note: See TracChangeset
for help on using the changeset viewer.