/[web]/nav/lib.php
ViewVC logotype

Diff of /nav/lib.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1254 by rda, Sun May 27 17:43:47 2012 UTC revision 1257 by rda, Mon May 28 09:13:59 2012 UTC
# Line 110  function _mgnav_style() Line 110  function _mgnav_style()
110  */  */
111  function _lang_check($s = null)  function _lang_check($s = null)
112  {  {
113      if (!is_null($s)) {      if (is_null($s))
114          $sub = explode('-', $s);          return 'en';
         $sub = strtolower($sub[0]);  
     }  
115    
116      $supported = array(      $supported = array(
117          'cs',          'cs',
# Line 134  function _lang_check($s = null) Line 132  function _lang_check($s = null)
132      if (in_array($s, $supported))      if (in_array($s, $supported))
133          return $s;          return $s;
134    
135        $sub = explode('-', $s);
136        $sub = strtolower($sub[0]);
137    
138      if (in_array($sub, $supported))      if (in_array($sub, $supported))
139          return $s;          return $sub;
140    
141      return 'en';      return 'en';
142  }  }

Legend:
Removed from v.1254  
changed lines
  Added in v.1257

  ViewVC Help
Powered by ViewVC 1.1.30