From 21d2f04ef8cd5c722d02cb8748fad88591860186 Mon Sep 17 00:00:00 2001 From: Michael J Rubinsky Date: Tue, 10 Jan 2017 08:52:57 -0500 Subject: [PATCH] Need to bind the Content classes now that we use Tagger. --- jonah/lib/Application.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jonah/lib/Application.php b/jonah/lib/Application.php index 1602185a71f..f3d9c958d87 100644 --- a/jonah/lib/Application.php +++ b/jonah/lib/Application.php @@ -50,6 +50,14 @@ protected function _init() 'title' => 'RSS 0.91' )); } + + /* For now, autoloading the Content_* classes depend on there being a + * registry entry for the 'content' application that contains at least + * the fileroot entry. */ + $GLOBALS['injector']->getInstance('Horde_Autoloader') + ->addClassPathMapper( + new Horde_Autoloader_ClassPathMapper_Prefix('/^Content_/', $GLOBALS['registry']->get('fileroot', 'content') . '/lib/')); + } /**