Need to put this in global scope
authorMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 4 May 2010 16:33:25 +0000 (12:33 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Tue, 4 May 2010 16:36:40 +0000 (12:36 -0400)
No way to access the public driver property like this from application code.

jonah/lib/Application.php

index 197da42..2535300 100644 (file)
@@ -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();
     }
 
     /**