From 7491e3c44affb89fe28030f8759283bc1b4aa291 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 23 Nov 2008 16:51:06 +0000 Subject: Add a site-config parameter to the config.php file. Created a core_block:head method to insert the title into the head section. If the config value is false, the default Browse Photos::$item->title is used. A string value with a trailing '-' will append the config value to $item-title. Otherwise, the page title is set with the supplied value. --- core/libraries/Theme.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/libraries') 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; -- cgit v1.2.3