Skip to content

Commit

Permalink
Making themePath work with E_STRICT.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 1, 2010
1 parent 2020675 commit ef6e01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/libs/configure.php
Expand Up @@ -688,8 +688,8 @@ public static function pluginPath($plugin) {
* @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)) {
Expand Down

0 comments on commit ef6e01f

Please sign in to comment.