Changeset 1433
- Timestamp:
- 12/07/09 13:35:05 (2 years ago)
- Location:
- trunk/wifidog-auth/wifidog
- Files:
-
- 2 modified
-
classes/NodeList.php (modified) (1 diff)
-
include/language.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/NodeList.php
r1428 r1433 78 78 require_once(NODE_LIST_CLASSES_DIR . "/NodeList" . $nodeListType . ".php"); 79 79 } else { 80 throw new Exception( _("The node list type '$nodeListType' is not supported!"));80 throw new Exception(sprintf(_("The node list type '%s' is not supported!"), htmlspecialchars($nodeListType))); 81 81 } 82 82 -
trunk/wifidog-auth/wifidog/include/language.php
r1421 r1433 50 50 $session = Session::getObject(); 51 51 //echo "Setting to $_REQUEST[wifidog_language]<br/>"; 52 $session->set(SESS_LANGUAGE_VAR, $_REQUEST['wifidog_language']); 52 $AVAIL_LOCALE_ARRAY = LocaleList::getAvailableLanguageArray(); 53 /* Try to guess the lang */ 54 if (!empty($AVAIL_LOCALE_ARRAY[$_REQUEST['wifidog_language']])) { 55 $session->set(SESS_LANGUAGE_VAR, $_REQUEST['wifidog_language']); 56 } 57 else { 58 throw new Exception(htmlspecialchars($_REQUEST['wifidog_language'])." is not a valid locale"); 59 } 53 60 } 54 61
