Skip to content

Commit

Permalink
Added $db_x to cot singleton, refs #1274.
Browse files Browse the repository at this point in the history
  • Loading branch information
trustmaster committed Nov 17, 2013
1 parent 8240829 commit 2cf0d20
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion system/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ class cot
* @var CotDB
*/
public static $db;
/**
* Database table name prefix
*/
public static $db_x;
/**
* Environment settings
* @var array
Expand Down Expand Up @@ -157,10 +161,11 @@ class cot
*/
public static function init()
{
global $cache, $cfg, $cot_extrafields, $db, $env, $L, $out, $R, $structure, $sys, $usr;
global $cache, $cfg, $cot_extrafields, $db, $db_x, $env, $L, $out, $R, $structure, $sys, $usr;
self::$cache =& $cache;
self::$cfg =& $cfg;
self::$db =& $db;
self::$db_x =& $db_x;
self::$env =& $env;
self::$extrafields =& $cot_extrafields;
self::$L =& $L;
Expand Down

0 comments on commit 2cf0d20

Please sign in to comment.