From 5e7cc75a29623781bfdc907c4bf76626151a6caa Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 27 May 2009 16:29:33 -0700 Subject: Convert a few more references of APPPATH to MODPATH/gallery --- modules/gallery/helpers/MY_url.php | 2 +- modules/gallery/helpers/gallery.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/gallery/helpers') diff --git a/modules/gallery/helpers/MY_url.php b/modules/gallery/helpers/MY_url.php index 81dcbe1e..5e8bfc9e 100644 --- a/modules/gallery/helpers/MY_url.php +++ b/modules/gallery/helpers/MY_url.php @@ -50,7 +50,7 @@ class url extends url_Core { if (!empty($item)) { Router::$controller = "{$item->type}s"; - Router::$controller_path = APPPATH . "controllers/{$item->type}s.php"; + Router::$controller_path = MODPATH . "gallery/controllers/{$item->type}s.php"; Router::$method = $item->id; } } diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php index bf33fa2b..34671f1f 100644 --- a/modules/gallery/helpers/gallery.php +++ b/modules/gallery/helpers/gallery.php @@ -27,7 +27,7 @@ class gallery_Core { if (Router::$controller != "login" && !empty($maintenance_mode) && !user::active()->admin) { Router::$controller = "maintenance"; - Router::$controller_path = APPPATH . "controllers/maintenance.php"; + Router::$controller_path = MODPATH . "gallery/controllers/maintenance.php"; Router::$method = "index"; } } -- cgit v1.2.3