diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-23 16:51:06 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-23 16:51:06 +0000 |
commit | 7491e3c44affb89fe28030f8759283bc1b4aa291 (patch) | |
tree | 077c14bcee9f68e80e07c8165dbf11ec41107e43 /core/libraries | |
parent | 7485740d9741021b2016df80b225ae4d82b892d0 (diff) |
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.
Diffstat (limited to 'core/libraries')
-rw-r--r-- | core/libraries/Theme.php | 6 |
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; |