Skip to content

Commit

Permalink
Wrapping error string in translator function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Feb 26, 2012
1 parent 7665f36 commit a31be56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/View/View.php
Expand Up @@ -422,7 +422,7 @@ public function element($name, $data = array(), $options = array()) {
$file = 'Elements' . DS . $name . $this->ext;

if (Configure::read('debug') > 0) {
return "Element Not Found: " . $file;
return __d('cake_dev', 'Element Not Found: %s', $file);
}
}

Expand Down

0 comments on commit a31be56

Please sign in to comment.