Changeset 32460 in spip-zone
- Timestamp:
- Oct 29, 2009, 8:27:09 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_dev_/spip_loader/spip_loader.php
r30812 r32460 56 56 57 57 // version de spip-loader 58 define('_SPIP_LOADER_VERSION', '2.0. 1');58 define('_SPIP_LOADER_VERSION', '2.0.2'); 59 59 # 60 60 ####################################################################### … … 135 135 if (is_array($accept_langs)) { 136 136 foreach($accept_langs as $s) { 137 if (preg_match(' ,^([a-z]{2,3})(-[a-z]{2,3})?(;q=[0-9.]+)?$,i', trim($s), $r)) {137 if (preg_match('#^([a-z]{2,3})(-[a-z]{2,3})?(;q=[0-9.]+)?$#i', trim($s), $r)) { 138 138 $lang = strtolower($r[1]); 139 139 if (isset($GLOBALS['langues'][$lang])) return $lang;
Note: See TracChangeset
for help on using the changeset viewer.