[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.707,1.708

Dirk Haun dhaun at qs1489.pair.com
Fri Jul 4 13:26:49 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html
In directory qs1489.pair.com:/tmp/cvs-serv28166/public_html

Modified Files:
	lib-common.php 
Log Message:
Fixed my fix - don't spam the error.log ...


Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.707
retrieving revision 1.708
diff -C2 -d -r1.707 -r1.708
*** lib-common.php	4 Jul 2008 15:59:18 -0000	1.707
--- lib-common.php	4 Jul 2008 17:26:47 -0000	1.708
***************
*** 6235,6247 ****
      }
  
!     $lang_id = false;
      if (isset($_CONF['language_files'])) {
          $lang_id = array_search($language, $_CONF['language_files']);
-     }
-     if ($lang_id === false) {
-         // that looks like a misconfigured $_CONF['language_files'] array ...
-         COM_errorLog('Language "' . $language . '" not found in $_CONF[\'language_files\'] array!');
  
!         $lang_id = ''; // not much we can do here ...
      }
  
--- 6235,6248 ----
      }
  
!     $lang_id = '';
      if (isset($_CONF['language_files'])) {
          $lang_id = array_search($language, $_CONF['language_files']);
  
!         if ($lang_id === false) {
!             // that looks like a misconfigured $_CONF['language_files'] array
!             COM_errorLog('Language "' . $language . '" not found in $_CONF[\'language_files\'] array!');
! 
!             $lang_id = ''; // not much we can do here ...
!         }
      }
  




More information about the geeklog-cvs mailing list