From: Michael J. Rubinsky Date: Thu, 5 Nov 2009 05:37:54 +0000 (-0500) Subject: Readd the code to add the proper class path for Content here to X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=75e36e5f7a463e354ed6ddfd35935ee06619a59d;p=horde.git Readd the code to add the proper class path for Content here to avoid having to load base.php, and initialize Kronolith, each and every time we send an autocomplete ajax request. --- diff --git a/kronolith/lib/Tagger.php b/kronolith/lib/Tagger.php index f45c57830..6d646ac0b 100644 --- a/kronolith/lib/Tagger.php +++ b/kronolith/lib/Tagger.php @@ -8,9 +8,12 @@ * * @package Kronolith */ + +// NOTE: Still need this here in addition to base.php to avoid having to fully +// initialize kronolith for each autocomplete ajax request. +Horde_Autoloader::addClassPattern('/^Content_/', $GLOBALS['registry']->get('fileroot', 'content') . '/lib/'); class Kronolith_Tagger { - /** * Local cache of the type name => ids from Content, so we don't have to * query for them each time.