summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-18 05:01:00 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-18 05:01:00 +0000
commit3d1ea2904d982422ce24c43b25d0d4bca6f29aa3 (patch)
tree81ac211d0f298791090126bf8061d3aec43ac134 /core
parent245cb11c5855d023d9bd4f7e693f0eafaeb7deb7 (diff)
Rename theme callback helpers from xxx_block to xxx_theme to make room
for us to rename the dashboard helper to be a block helper since sidebar blocks are not just in the dashboard.
Diffstat (limited to 'core')
-rw-r--r--core/helpers/core_theme.php (renamed from core/helpers/core_block.php)5
-rw-r--r--core/libraries/Admin_View.php2
-rw-r--r--core/libraries/Theme_View.php2
3 files changed, 4 insertions, 5 deletions
diff --git a/core/helpers/core_block.php b/core/helpers/core_theme.php
index 48e158be..0ccad457 100644
--- a/core/helpers/core_block.php
+++ b/core/helpers/core_theme.php
@@ -17,8 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/
-
-class core_block_Core {
+class core_theme_Core {
static function head($theme) {
$buf = "";
if (Session::instance()->get("debug")) {
@@ -39,7 +38,7 @@ class core_block_Core {
return "<div class=\"gQuick\" href=\"$edit_link\"></div>";
}
}
-
+
static function thumb_top($theme, $child) {
if ($child->type == "photo" && access::can("edit", $child)) {
$edit_link = url::site("quick/pane/$child->id");
diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php
index af2d7fa8..e15c0d68 100644
--- a/core/libraries/Admin_View.php
+++ b/core/libraries/Admin_View.php
@@ -93,7 +93,7 @@ class Admin_View_Core extends View {
case "admin_head":
$blocks = array();
foreach (module::installed() as $module) {
- $helper_class = "{$module->name}_block";
+ $helper_class = "{$module->name}_theme";
if (method_exists($helper_class, $function)) {
$blocks[] = call_user_func_array(
array($helper_class, $function),
diff --git a/core/libraries/Theme_View.php b/core/libraries/Theme_View.php
index 38e8e056..1f8ca559 100644
--- a/core/libraries/Theme_View.php
+++ b/core/libraries/Theme_View.php
@@ -165,7 +165,7 @@ class Theme_View_Core extends View {
case "photo_bottom":
$blocks = array();
foreach (module::installed() as $module) {
- $helper_class = "{$module->name}_block";
+ $helper_class = "{$module->name}_theme";
if (method_exists($helper_class, $function)) {
$blocks[] = call_user_func_array(
array($helper_class, $function),