public
Description: Git mirror of the CMS Made Simple 2.0 rewrite
Homepage: http://cmsmadesimple.org
Clone URL: git://github.com/tedkulp/cmsmadesimple-2-0.git
Search Repo:
Make genratedump.php not rely on gobal Db. This error needs fixing: Fatal 
error: Call to undefined method pear_ADOConnection::MetaTables() See: 
http://forum.cmsmadesimple.org/index.php/topic,13699.msg67596.html

git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple/trunk@4048 
3d254a34-79dc-0310-9e5f-be208747d8a0
elijahlofgren (author)
Sun Jul 22 15:23:43 -0700 2007
commit  3cb1fc8b6c599fd601dc3002b4f180bb91e8c507
tree    701e29d2a18818b6e510100c662d39380af60538
parent  30f474e3d36216387d062a8ed819a969e0462e0f
...
1
2
3
4
5
6
 
 
7
8
9
...
14
15
16
 
 
17
18
19
...
1
2
3
 
4
 
5
6
7
8
9
...
14
15
16
17
18
19
20
21
0
@@ -1,9 +1,9 @@
0
 <?php
0
 
0
 include_once(dirname(__FILE__)."/include.php");
0
-
0
 function execute_dump(&$result) {
0
- global $db;
0
+ global $gCms;
0
+ $db = $gCms->db;
0
   while ($row = $result->FetchRow()) {
0
     $now = $db->DBTimeStamp(time());
0
     $length = strlen($now);
0
@@ -14,6 +14,8 @@ function execute_dump(&$result) {
0
   }
0
 }
0
 
0
+global $gCms;
0
+$db = $gCms->db;
0
 $tablelist = $db->MetaTables('TABLES');
0
 foreach ($tablelist as $tablename) {
0
   $result = $db->Execute("SELECT * FROM $tablename");

Comments

    No one has commented yet.