Permalink
Browse files

Wrapping error string in translator function.

  • Loading branch information...
1 parent 7665f36 commit a31be56f425f0ce5fe6d1bb217f9ad27ac0938c9 @ADmad ADmad committed Feb 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/View/View.php
@@ -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);
}
}

0 comments on commit a31be56

Please sign in to comment.