* lib/php/db/dbq.php
*/
require_once(realpath(dirname(__FILE__).'/init.php'));
+if (!isset($Db)) global $Db, $Table;
$Db->pdef('format',$Db->content_type2format());
return $Db->action($Db->p('action'),$Table);
?>
#require_once(realpath(dirname(__FILE__).'/page.php')); return;
require_once(realpath(dirname(__FILE__).'/init.php'));
if(defined('DB_NO_ACTION') and DB_NO_ACTION) return true;
-
-# Needed when include from a function
if (!isset($Db)) global $Db, $Table;
-
$Db->pdef('format',$Db->content_type2format());
return $Db->action($Db->p('action'),$Table);
?>