summaryrefslogtreecommitdiff
path: root/core/libraries/Theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries/Theme.php')
-rw-r--r--core/libraries/Theme.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php
index 19c2dd57..d5af41b4 100644
--- a/core/libraries/Theme.php
+++ b/core/libraries/Theme.php
@@ -82,7 +82,11 @@ class Theme_Core {
case "photo_bottom":
if (empty($this->block_helpers[$function])) {
foreach (module::get_list() as $module) {
- $helper_path = MODPATH . "$module->name/helpers/{$module->name}_block.php";
+ if ($module->name == "core") {
+ $helper_path = APPPATH . "helpers/{$module->name}_block.php";
+ } else {
+ $helper_path = MODPATH . "$module->name/helpers/{$module->name}_block.php";
+ }
$helper_class = "{$module->name}_block";
if (file_exists($helper_path) && method_exists($helper_class, $function)) {
$this->block_helpers[$function][] = $helper_class;