[geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.704,1.705

Dirk Haun dhaun at qs1489.pair.com
Fri Jul 4 09:16:10 EDT 2008


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

Modified Files:
	lib-common.php 
Log Message:
E_ALL fix


Index: lib-common.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v
retrieving revision 1.704
retrieving revision 1.705
diff -C2 -d -r1.704 -r1.705
*** lib-common.php	4 Jul 2008 11:58:50 -0000	1.704
--- lib-common.php	4 Jul 2008 13:16:07 -0000	1.705
***************
*** 6241,6258 ****
  *
  */
! function COM_getLanguageId( $language = '' )
  {
      global $_CONF;
  
!     if( empty( $language ))
!     {
          $language = COM_getLanguage();
      }
  
!     $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 ...
--- 6241,6259 ----
  *
  */
! function COM_getLanguageId($language = '')
  {
      global $_CONF;
  
!     if (empty($language)) {
          $language = COM_getLanguage();
      }
  
!     $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 ...




More information about the geeklog-cvs mailing list