From 18a6614a11cf39a29f5705edabc710688da357e6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 10 Dec 2008 07:05:49 +0000 Subject: Change all access API methods to take ORMs instead of ids. This will minimize reloading objects from the database. --- core/helpers/core_block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/helpers/core_block.php') diff --git a/core/helpers/core_block.php b/core/helpers/core_block.php index 5bc469b5..45cc2026 100644 --- a/core/helpers/core_block.php +++ b/core/helpers/core_block.php @@ -29,7 +29,7 @@ class core_block_Core { $profiler->render(); } - if (access::can("edit", $theme->item()->id)) { + if (access::can("edit", $theme->item())) { return new View("in_place_edit.html"); } } -- cgit v1.2.3