summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-28 07:23:05 +0800
committerGallery Role Account <gallery@menalto.com>2009-05-28 11:07:10 +0800
commitf89424bc85942d25fa6da2371f5a0e439aaaf33e (patch)
tree2d2414c50bf1cd84d18410cfc62f9556a0c2608f
parent4eedf804e1f26d95de6803e48c608d893c53b7d0 (diff)
Show the scaffolding link if the controller is around.
Signed-off-by: Gallery Role Account <gallery@menalto.com>
-rw-r--r--modules/gallery/helpers/gallery_menu.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php
index 215fc420..1dc9cb41 100644
--- a/modules/gallery/helpers/gallery_menu.php
+++ b/modules/gallery/helpers/gallery_menu.php
@@ -19,7 +19,7 @@
*/
class gallery_menu_Core {
static function site($menu, $theme) {
- if (file_exists(APPPATH . "controllers/scaffold.php") && user::active()->admin) {
+ if (file_exists(MODPATH . "gallery/controllers/scaffold.php") && user::active()->admin) {
$menu->append($scaffold_menu = Menu::factory("submenu")
->id("scaffold")
->label("Scaffold"));