diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 16:23:05 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-05-27 16:23:05 -0700 |
commit | 28b09a304630babf18e41aa56b24152c8babcef0 (patch) | |
tree | 509e4cd503e7a891bcc49f7333af518f56586fb1 | |
parent | 88a3d43ba9b9377ba6bbe21a4547220ae3a37276 (diff) |
Show the scaffolding link if the controller is around.
-rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 2 |
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")); |