diff options
Diffstat (limited to 'modules/gallery')
-rw-r--r-- | modules/gallery/controllers/scaffold.php | 2 | ||||
-rw-r--r-- | modules/gallery/helpers/MY_url.php | 2 | ||||
-rw-r--r-- | modules/gallery/helpers/gallery.php | 2 | ||||
-rw-r--r-- | modules/gallery/tests/File_Structure_Test.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/controllers/scaffold.php b/modules/gallery/controllers/scaffold.php index 8ec1663a..5b8f9aa9 100644 --- a/modules/gallery/controllers/scaffold.php +++ b/modules/gallery/controllers/scaffold.php @@ -80,7 +80,7 @@ class Scaffold_Controller extends Template_Controller { $parents = ORM::factory("item")->where("type", "album")->find_all()->as_array(); $owner_id = user::active()->id; - $test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]"); + $test_images = glob(MODPATH . "gallery/tests/images/*.[Jj][Pp][Gg]"); batch::start(); $album_count = $photo_count = 0; 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"; } } diff --git a/modules/gallery/tests/File_Structure_Test.php b/modules/gallery/tests/File_Structure_Test.php index 3b8c754f..017b1950 100644 --- a/modules/gallery/tests/File_Structure_Test.php +++ b/modules/gallery/tests/File_Structure_Test.php @@ -221,7 +221,7 @@ class GalleryCodeFilterIterator extends FilterIterator { strpos($path_name, DOCROOT . "test") !== false || strpos($path_name, DOCROOT . "var") !== false || strpos($path_name, MODPATH . "forge") !== false || - strpos($path_name, APPPATH . "views/kohana_error_page.php") !== false || + strpos($path_name, MODPATH . "gallery/views/kohana_error_page.php") !== false || strpos($path_name, MODPATH . "gallery/views/kohana_profiler.php") !== false || strpos($path_name, MODPATH . "gallery_unit_test/views/kohana_error_page.php") !== false || strpos($path_name, MODPATH . "gallery_unit_test/views/kohana_unit_test_cli.php") !== false || |