Ticket #489 (closed Feature Request: wontfix)
Modules directory
| Reported by: | canglan | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1.2 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | modules | Cc: |
Description
In the index.php file there is this '$kohana_modules' variable which we can set for the modules directory.
However, this setting is obsolete because the config class does not take the advantage of the values.
In './system/core/Config.php', from line 146:
foreach(self::item('core.modules') as $path)
{
if (($path = str_replace('\\', '/', realpath($path))) == '')
continue;
self::$include_paths[] = $path.'/';
}
Proposed fix:
foreach(self::item('core.modules') as $path)
{
self::$include_paths[] = MODPATH.$path.'/';
}
Change History
Note: See
TracTickets for help on using
tickets.
