phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: setup/inc class.schema_proc.inc.php,1.3,1.4


From: Miles Lott <address@hidden>
Subject: [Phpgroupware-cvs] CVS: setup/inc class.schema_proc.inc.php,1.3,1.4
Date: Sun, 17 Feb 2002 15:00:30 -0500

Update of /cvsroot/phpgroupware/setup/inc
In directory subversions:/tmp/cvs-serv19554

Modified Files:
        class.schema_proc.inc.php 
Log Message:
Apply modified patch from Ralf Becker to allow for use within phpgw (not setup)



Index: class.schema_proc.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/inc/class.schema_proc.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.schema_proc.inc.php   12 Sep 2001 13:44:35 -0000      1.3
--- class.schema_proc.inc.php   17 Feb 2002 20:00:28 -0000      1.4
***************
*** 22,32 ****
                function schema_proc($dbms)
                {
!                       include('./inc/class.schema_proc_' . $dbms . 
'.inc.php');
                        eval("\$this->m_oTranslator = new schema_proc_$dbms;");
  
!                       include('./inc/class.schema_proc_array.inc.php');
                        $this->m_oDeltaProc = new schema_proc_array;
                        $this->m_aTables = array();
!                       $this->m_bDeltaOnly = false; // Default to false here 
in case it's just a CreateTable script
                }
  
--- 22,43 ----
                function schema_proc($dbms)
                {
!                       if(@is_object($GLOBALS['phpgw']))
!                       {
!                               /* this allows usage from within phpgw */
!                               $basedir = PHPGW_SERVER_ROOT . '/setup/';
!                       }
!                       else
!                       {
!                               $basedir = './';
!                       }
! 
!                       include($basedir . 'inc/class.schema_proc_' . $dbms . 
'.inc.php');
                        eval("\$this->m_oTranslator = new schema_proc_$dbms;");
  
!                       include($basedir . 
'inc/class.schema_proc_array.inc.php');
! 
                        $this->m_oDeltaProc = new schema_proc_array;
                        $this->m_aTables = array();
!                       $this->m_bDeltaOnly = False; // Default to false here 
in case it's just a CreateTable script
                }
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]