8
Rather than renaming the extCal class, and therefore having to edit every instantiation of it, it might be easier to check if the class is defined already before calling it. It seems pretty safe to me, and thefore should work whenever that ExtCal '(re)definition' is called throughout the site.
Near the beginning of /modules/extcal/class/PersistableObjectHandler.php add the following if statement.
change
Quote:
* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/
class XoopsPersistableObjectHandler extends XoopsObjectHandler {
/**#@+
* Information about the class, the handler is managing
to
Quote:
* @copyright copyright (c) 2000-2004 XOOPS.org
* @package Kernel
*/
if(!class_exists('XoopsPersistableObjectHandler'))
{
class XoopsPersistableObjectHandler extends XoopsObjectHandler {
/**#@+
* Information about the class, the handler is managing
.
And you need to close the if statement with a '}'at the end of the file as well, i.e.
Change
Quote:
return $rows > 0 ? $rows : true;
}
return false;
}
}
?>
to
Quote:
return $rows > 0 ? $rows : true;
}
return false;
}
}
}
?>