includes/sessions.php
changeset 782 96848f04bbba
parent 776 f37b60d393bc
child 801 eb8b23f11744
--- a/includes/sessions.php	Sun Dec 21 16:56:38 2008 -0500
+++ b/includes/sessions.php	Sun Dec 21 17:25:28 2008 -0500
@@ -1007,7 +1007,7 @@
     // This is a VERY special case we are allowing. It lets the installer create languages using the Enano API.
     if ( !defined('ENANO_ALLOW_LOAD_NOLANG') )
     {
-      $language = ( isset($_GET['lang']) && preg_match('/^[a-z0-9_]+$/', @$_GET['lang']) ) ? $_GET['lang'] : intval(getConfig('default_language'));
+      $language = ( isset($_GET['lang']) && preg_match('/^[a-z0-9-_]+$/', @$_GET['lang']) ) ? $_GET['lang'] : intval(getConfig('default_language'));
       $lang = new Language($language);
       @setlocale(LC_ALL, $lang->lang_code);
     }