From 2634a683b30982963264faf9867d32d1aa71a182 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Sun, 4 Oct 2009 10:04:35 -0700 Subject: 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. --- modules/gallery/helpers/gallery.php | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'modules/gallery/helpers/gallery.php') 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 -- cgit v1.2.3