From ef6e01f21ff69ef01d7451c11493cb4e65bd6630 Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 30 Jun 2010 22:48:30 -0400 Subject: [PATCH] Making themePath work with E_STRICT. --- cake/libs/configure.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/libs/configure.php b/cake/libs/configure.php index cbdf6b1f8..cdd1d1497 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -688,8 +688,8 @@ class App extends Object { * @param string $theme lower_cased theme name to find the path of. * @return string full path to the theme. */ - function themePath($theme) { - $_this =& App::getInstance(); + public static function themePath($theme) { + $_this = App::getInstance(); $themeDir = 'themed' . DS . Inflector::underscore($theme); for ($i = 0, $length = count($_this->views); $i < $length; $i++) { if (is_dir($_this->views[$i] . $themeDir)) {