Skip to content

Commit

Permalink
Minor modifications to Layout
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Apr 19, 2009
1 parent 786119f commit bc9cbc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recess/recess/framework/helpers/Layout.class.php
Expand Up @@ -68,12 +68,12 @@ public static function extend($layout) {
}

$layout = self::$app->getViewsDir() . $layout;
if(strpos($layout, '.') === false) {
if(strpos($layout, '.php') === false) {
$layout .= '.php';
}

if(!file_exists($layout)) {
throw new RecessFrameworkException('Extended layout does not exist.', 1);
throw new RecessFrameworkException('Extended layout does not exist. Expected location: ' . $layout, 1);
}

array_push(self::$extendStack, $layout);
Expand Down

0 comments on commit bc9cbc8

Please sign in to comment.