[ingo] Driver.php included more than once
Alexander Skwar
lists.ASkwar at email-server.info
Tue Apr 15 19:36:02 PDT 2003
Hello!
There's a small, annoying bug in current Ingo. The file Driver.php is
required more than once.
The attaced diff fixes this, by using require_once instead of require.
Alexander Skwar
--
/* When we have more time, we can teach the penguin to say
* "By your command" or "Activating turbo boost, Michael".
*/
2.2.16 /usr/src/linux/arch/sparc/prom/sun4prom.c
-------------- next part --------------
diff -ur ingo.original/lib/Ingo.php ingo/lib/Ingo.php
--- ingo.original/lib/Ingo.php 2003-04-15 18:27:50.000000000 +0200
+++ ingo/lib/Ingo.php 2003-04-15 18:29:32.000000000 +0200
@@ -116,7 +116,7 @@
$uid = substr($uid, 0, $pos);
}
- require INGO_BASE . '/lib/Driver.php';
+ require_once INGO_BASE . '/lib/Driver.php';
$driver = &Ingo_Driver::singleton($backend['driver'], $backend['params']);
$res = $driver->setScriptActive($script, $uid, Auth::getCredential('password'));
if (!is_a($res, 'PEAR_Error')) {
diff -ur ingo.original/rule.php ingo/rule.php
--- ingo.original/rule.php 2003-04-15 18:27:49.000000000 +0200
+++ ingo/rule.php 2003-04-15 18:29:26.000000000 +0200
@@ -10,7 +10,7 @@
define('INGO_BASE', dirname(__FILE__));
require_once INGO_BASE . '/lib/base.php';
-require INGO_BASE . '/lib/Driver.php';
+require_once INGO_BASE . '/lib/Driver.php';
require INGO_BASE . '/config/tests.php';
/* Redirect to prefs if rules are turned off. */
More information about the ingo
mailing list