Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/functions.inc.php between version 1.32 and 1.33

version 1.32, 2006/09/03 14:07:58 version 1.33, 2006/09/12 16:31:01
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/functions.inc.php,v 1.31 2006-09-03 14:03:24 nepto Exp $ */  /* $Platon: Metafox/functions.inc.php,v 1.32 2006-09-03 14:07:58 nepto Exp $ */
   
 function ezin_eval($evalcode) /* {{{ */  function ezin_eval($evalcode) /* {{{ */
 {  {
Line 725  function ezin_load_template($template_ke
Line 725  function ezin_load_template($template_ke
         if (isset($ezin_cgi['lang']) && $ezin_cgi['lang'] != '') {          if (isset($ezin_cgi['lang']) && $ezin_cgi['lang'] != '') {
                 $template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang'];                  $template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang'];
         }          }
           $additional_append_lang = true;
         while (1) {          while (1) {
                 $filename = $theme_dir . $template_key . $ezin_sys['tmpl']['delimext'];                  $filename = $theme_dir . $template_key . $ezin_sys['tmpl']['delimext'];
                 if (@file_exists($filename) && $f = @fopen($filename, 'r')) {                  if (@file_exists($filename) && $f = @fopen($filename, 'r')) {
Line 743  function ezin_load_template($template_ke
Line 744  function ezin_load_template($template_ke
                         break;                          break;
                 }                  }
                 $template_key = substr($template_key, 0, $pos);                  $template_key = substr($template_key, 0, $pos);
                   if (($pos = strrpos($template_key, '.')) === false && $additional_append_lang == true) {
                           $template_key .= $ezin_sys['tmpl']['delim'].$ezin_cgi['lang'];
                           $additional_append_lang = false;
                   }
         }          }
         return false;          return false;
 } /* }}} */  } /* }}} */

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top