[geeklog-cvs] tools/lm/include core.inc,1.2,1.3

Dirk Haun dhaun at qs1489.pair.com
Fri May 2 11:18:22 EDT 2008


Update of /cvsroot/geeklog/tools/lm/include
In directory qs1489.pair.com:/tmp/cvs-serv50014

Modified Files:
	core.inc 
Log Message:
Fix for another common mistake in many language files


Index: core.inc
===================================================================
RCS file: /cvsroot/geeklog/tools/lm/include/core.inc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** core.inc	1 May 2008 20:10:38 -0000	1.2
--- core.inc	2 May 2008 15:18:20 -0000	1.3
***************
*** 33,40 ****
  
  /**
! * Helper function: Fix URL in some language files
  *
  */
! function Core_fix_storydenialmsg(&$access)
  {
      if (isset($access['storydenialmsg'])) {
--- 33,40 ----
  
  /**
! * Helper function: Fix URLs in some language files
  *
  */
! function Core_fix_some_urls(&$access)
  {
      if (isset($access['storydenialmsg'])) {
***************
*** 43,46 ****
--- 43,51 ----
                      $access['storydenialmsg']);
      }
+ 
+     if (isset($access['editrootmsg'])) {
+         $access['editrootmsg'] = str_replace('users.php', 'user.php',
+                                              $access['editrootmsg']);
+     }
  }
  
***************
*** 174,178 ****
  
  mergeArrays($ENGMS,  $MESSAGE, 'MESSAGE', 'confirmation and error messages');
! Core_fix_storydenialmsg($LANG_ACCESS);
  mergeArrays($ENGAC,  $LANG_ACCESS, 'LANG_ACCESS');
  mergeArrays($ENGDB,  $LANG_DB_BACKUP, 'LANG_DB_BACKUP', 'admin/database.php');
--- 179,183 ----
  
  mergeArrays($ENGMS,  $MESSAGE, 'MESSAGE', 'confirmation and error messages');
! Core_fix_some_urls($LANG_ACCESS);
  mergeArrays($ENGAC,  $LANG_ACCESS, 'LANG_ACCESS');
  mergeArrays($ENGDB,  $LANG_DB_BACKUP, 'LANG_DB_BACKUP', 'admin/database.php');




More information about the geeklog-cvs mailing list