diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-28 07:23:05 +0800 |
---|---|---|
committer | Gallery Role Account <gallery@menalto.com> | 2009-05-28 11:07:10 +0800 |
commit | f89424bc85942d25fa6da2371f5a0e439aaaf33e (patch) | |
tree | 2d2414c50bf1cd84d18410cfc62f9556a0c2608f | |
parent | 4eedf804e1f26d95de6803e48c608d893c53b7d0 (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.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")); |