Permalink
Browse files

fixed call to the title method

  • Loading branch information...
1 parent 5715c9b commit 49a56229ca3edb33fe69657f7b1a3a4aada3c3ce @mogria committed May 3, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 Views/layout/application.tpl
  2. +2 −2 lib/View/Template.php
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>{=isset($title) ? $title . " - " : ""}Void.php</title>
+ <title>{=:title("Void.php", $title)}</title>
<meta charset="utf-8" />
{=:linkTag('blueprint/screen', Array('media' => 'screen, projection'))}
{=:linkTag('blueprint/print', Array('media' => 'print'))}
View
@@ -43,7 +43,7 @@ public function __construct($file, Array $initializers = Array()) {
public function setFile($file) {
$this->template_finder->setFilespec($file);
$helpername = ucfirst($this->template_finder->getController()) . self::$config->helper_postfix;
- if(!class_exists($helpername)) {
+ if(!class_exists(__NAMESPACE__ . "\\" . $helpername, true)) {
$helpername = "ApplicationHelper";
}
$helpername = __NAMESPACE__ . "\\" . $helpername;
@@ -252,7 +252,7 @@ public function __call($method, $args) {
return call_user_func_array(Array($this->helper, $method), $args);
} else {
// Nothing to do here
- throw new BadMethodCallException("There is no template or helper method '$method'.");
+ throw new BadMethodCallException("There is no template or helper method '$method'");
}
}
}

0 comments on commit 49a5622

Please sign in to comment.