| Summary | Registry not loading APIs in _fillAPICache() |
| Queue | Horde Framework Packages |
| Queue Version | FRAMEWORK_3 |
| Type | Bug |
| State | Not A Bug |
| Priority | 2. Medium |
| Owners | |
| Requester | tripp-track-horde-ticket-200604022233 (at) perspex (dot) com |
| Created | 04/03/2006 (7157 days ago) |
| Due | |
| Updated | 12/30/2009 (5790 days ago) |
| Assigned | |
| Resolved | 04/08/2006 (7152 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
Its ok . I will calll and they will fix it . dont worry but thank you
State ⇒ Not A Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Registry not loading APIs in _fillAPICache()
Queue ⇒ Horde Framework Packages
Horde 3.1.1, Kronolith h3-2.1
In the section of _fillAPICache that calls "include_once $api", the
API's _services variable doesn't get propagated back out to
_fillAPICache, so it doesn't actually put anything in the cache.
I'm not a huge PHP programmer, but my hackish fix was to split the
lib/api.php file for the app (kronolith, in this case) into two files:
api.php, containing only the _services entries and an "include_once"
statement, and apiWrapper.php, included by the include_once statement
in api.php.
I then modified Horde/Registry.php to call "include $api" instead of
"include_once $api", and it seems to work.
I'm not attaching the patch, mainly because I'm pretty sure there's a
more "horde-ish" and/or "PHP-ish" way to do this, and I don't want to
embarass myself :-)