[geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.13, 1.14

Dirk Haun dhaun at qs1489.pair.com
Sun Jan 6 04:56:40 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/system/classes
In directory qs1489.pair.com:/tmp/cvs-serv45243/system/classes

Modified Files:
	config.class.php 
Log Message:
Make mysqldump path available in the config GUI


Index: config.class.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** config.class.php	6 Jan 2008 08:55:57 -0000	1.13
--- config.class.php	6 Jan 2008 09:56:37 -0000	1.14
***************
*** 118,123 ****
      function &get_config($group)
      {
!         if(array_key_exists($group, $this->config_array))
              return $this->config_array[$group];
          return false;
      }
--- 118,133 ----
      function &get_config($group)
      {
!         if (array_key_exists($group, $this->config_array)) {
! 
!             // an ugly little hack to ensure backward compatibility ...
!             if ($group == 'Core') {
!                 global $_DB_mysqldump_path;
! 
!                 $_DB_mysqldump_path = $this->config_array[$group]['mysqldump_path'];
!             }
! 
              return $this->config_array[$group];
+         }
+ 
          return false;
      }




More information about the geeklog-cvs mailing list