[horde] patch for CVS HEAD horde/lib/Links.php
Gary Windham
windhamg at email.arizona.edu
Fri Dec 5 13:14:36 PST 2003
The current CVS HEAD version of horde/lib/Links.php doesn't globally
include HORDE_BASE/lib/Category.php. When horde/lib/Links.php is
required or included by another file (such as
horde/services/links/delete.php) a fatal PHP error occurs, since the
CategoryObject class is undefined at the time CategoryObject_Link is
defined:
[04-Dec-2003 13:59:03] PHP Fatal error: Class categoryobject_link:
Cannot inherit from undefined class categoryobject in
/usr/local/depot/apache-1.3.27/htdocs/horde-cvsupdate-120403/lib/Links.php
on line 411
I have attached a patch which appears to resolve the problem.
Thanks,
--
Gary Windham
Systems Programmer, Principal
The University of Arizona, CCIT
-------------- next part --------------
--- Links.php Fri Nov 28 01:07:02 2003
+++ Links.php.new Fri Dec 5 14:01:28 2003
@@ -1,4 +1,7 @@
<?php
+
+require_once HORDE_BASE . '/lib/Category.php';
+
/**
* $Horde: horde/lib/Links.php,v 1.27 2003/11/28 08:07:02 bo Exp $
*
@@ -82,7 +85,6 @@
Horde::fatal('You must configure a Category backend to use Links.');
}
- require_once HORDE_BASE . '/lib/Category.php';
$driver = $conf['category']['driver'];
$this->_categories = &Category::singleton($driver,
array_merge(Horde::getDriverConfig('category', $driver),
More information about the horde
mailing list