includes/lang.php
changeset 345 4ccdfeee9a11
parent 335 67bd3121a12e
child 348 87e08a6e4fec
equal deleted inserted replaced
344:be6c5fdd9203 345:4ccdfeee9a11
   100     $row = $db->fetchrow();
   100     $row = $db->fetchrow();
   101     
   101     
   102     $this->lang_id   = intval( $row['lang_id'] );
   102     $this->lang_id   = intval( $row['lang_id'] );
   103     $this->lang_code = $row['lang_code'];
   103     $this->lang_code = $row['lang_code'];
   104     $this->lang_timestamp = $row['last_changed'];
   104     $this->lang_timestamp = $row['last_changed'];
   105   }
       
   106   
       
   107   /**
       
   108    * PHP 4 constructor.
       
   109    * @param int|string Language ID or code to load.
       
   110    */
       
   111   
       
   112   function Language($lang)
       
   113   {
       
   114     $this->__construct($lang);
       
   115   }
   105   }
   116   
   106   
   117   /**
   107   /**
   118    * Fetches language strings from the database, or a cache file if it's available.
   108    * Fetches language strings from the database, or a cache file if it's available.
   119    * @param bool If true (default), allows the cache to be used.
   109    * @param bool If true (default), allows the cache to be used.