From f89424bc85942d25fa6da2371f5a0e439aaaf33e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 28 May 2009 07:23:05 +0800 Subject: Show the scaffolding link if the controller is around. Signed-off-by: Gallery Role Account --- modules/gallery/helpers/gallery_menu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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")); -- cgit v1.2.3