From: Michael J. Rubinsky Date: Tue, 4 May 2010 16:33:25 +0000 (-0400) Subject: Need to put this in global scope X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e341f631c21530eab8ab052a3c32dc39392af5ee;p=horde.git Need to put this in global scope No way to access the public driver property like this from application code. --- diff --git a/jonah/lib/Application.php b/jonah/lib/Application.php index 197da428b..253530067 100644 --- a/jonah/lib/Application.php +++ b/jonah/lib/Application.php @@ -25,8 +25,6 @@ require_once HORDE_BASE . '/lib/core.php'; class Jonah_Application extends Horde_Registry_Application { public $version = 'H4 (1.0-git)'; - - public $driver = null; /** * Initialization function. @@ -35,7 +33,7 @@ class Jonah_Application extends Horde_Registry_Application */ protected function _init() { - $this->driver = Jonah_Driver::factory(); + $GLOBALS['jonah_driver'] = Jonah_Driver::factory(); } /**