From: Ben Klang Date: Fri, 27 Jun 2008 04:03:51 +0000 (+0000) Subject: * Fix pathing and versioning for incubator X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=39e2dd87e9b13f531c5ce6c04611398bb0eb8c30;p=horde.git * Fix pathing and versioning for incubator * Fix merging Horde driver configuration for SQL-based drivers --- diff --git a/lib/Driver.php b/lib/Driver.php index 667970ebb..8f432f9db 100644 --- a/lib/Driver.php +++ b/lib/Driver.php @@ -3,7 +3,7 @@ * Operator_Driver:: defines an API for implementing storage backends for * Operator. * - * $Horde: incubator/operator/lib/Driver.php,v 1.1 2008/04/19 01:26:06 bklang Exp $ + * $Horde: incubator/operator/lib/Driver.php,v 1.2 2008/06/27 04:03:51 bklang Exp $ * * Copyright 2007-2008 The Horde Project (http://www.horde.org/) * @@ -54,8 +54,15 @@ class Operator_Driver { } $driver = basename($driver); - if ($params === null) { - $params = Horde::getDriverConfig('storage', $driver); + if (is_null($params)) { + // Since we have more than one backend that uses SQL make sure + // all of them have a chance to inherit the site-wide config. + $sqldrivers = array('sql', 'asterisksql'); + if (in_array($driver, $sqldrivers)) { + $params = Horde::getDriverConfig('storage', 'sql'); + } else { + $params = Horde::getDriverConfig('storage', $driver); + } } $class = 'Operator_Driver_' . $driver; diff --git a/lib/base.php b/lib/base.php index 05e6e0b2e..53376aea1 100644 --- a/lib/base.php +++ b/lib/base.php @@ -2,7 +2,7 @@ /** * Operator base application file. * - * $Horde: incubator/operator/lib/base.php,v 1.1 2008/04/19 01:26:06 bklang Exp $ + * $Horde: incubator/operator/lib/base.php,v 1.2 2008/06/27 04:03:51 bklang Exp $ * * This file brings in all of the dependencies that every Operator script will * need, and sets up objects that all scripts use. @@ -11,7 +11,7 @@ // Check for a prior definition of HORDE_BASE (perhaps by an auto_prepend_file // definition for site customization). if (!defined('HORDE_BASE')) { - @define('HORDE_BASE', dirname(__FILE__) . '/../..'); + @define('HORDE_BASE', dirname(__FILE__) . '/../../..'); } // Load the Horde Framework core, and set up inclusion paths. diff --git a/lib/version.php b/lib/version.php index a283b1ce5..59bf5b296 100644 --- a/lib/version.php +++ b/lib/version.php @@ -1 +1 @@ - \ No newline at end of file +