summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-04 10:04:35 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-04 10:12:22 -0700
commit2634a683b30982963264faf9867d32d1aa71a182 (patch)
treeccb493b33e72b286b6b64e95e55b5720529a7b3d /modules/gallery/helpers/gallery.php
parentaa0529d557ed0609bf7e5b23a5cf2437f7998c4b (diff)
Revert "Create a gallery::plugin_path which returns the appropriate path to the module or theme. This checks for the existence of an application/modules or application/themes first."
This reverts commit e1e1461a77caf5bff457927f098366497de6ffff.
Diffstat (limited to 'modules/gallery/helpers/gallery.php')
-rw-r--r--modules/gallery/helpers/gallery.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/modules/gallery/helpers/gallery.php b/modules/gallery/helpers/gallery.php
index 6d387d76..37a08d08 100644
--- a/modules/gallery/helpers/gallery.php
+++ b/modules/gallery/helpers/gallery.php
@@ -110,17 +110,4 @@ class gallery_Core {
return $file_name;
}
- /**
- * Return a full path to the theme or module file. It checks the APPPATH/(themes|modules) first
- * then the THEMEPATH | MODPATH
- * @param $file the file or directory
- * @param $type ("module" | "theme" optional: defaults to "module")
- * @return string
- */
- static function plugin_path($file, $type="module") {
- if (!file_exists($ofile = APPPATH . "{$type}s/$file")) {
- $ofile = $type == "module" ? MODPATH . $file : THEMEPATH . $file;
- }
- return $ofile;
- }
} \ No newline at end of file