Permalink
Browse files

Big improvements to GoogleClosure and HeadScriptBundler services. And…

… some other stability bugfixes.
  • Loading branch information...
1 parent 807f362 commit 5531d9eb8cec9fceb9aed215e3793a0ee5af075b @balupton balupton committed Dec 1, 2010
View
@@ -405,7 +405,7 @@ protected function _translate_advanced ( $text ) {
# Check
if ( $matches_n === 0 ) {
- throw new Bal_Exception('Translate advanced did not find what it was looking for..');
+ throw new Bal_Exception('Translate advanced did not find what it was looking for...');
}
# Cycle
@@ -424,7 +424,12 @@ protected function _translate_advanced ( $text ) {
$value = $parts[2];
} else {
$value = $match_str;
- }
+ }
+
+ # Check
+ if ( !method_exists($this, $translator) ) {
+ throw new Bal_Exception('Translate advanced was passed invalid arguments...');
+ }
# Apply the translator
$result = $this->$translator($value);
Oops, something went wrong.

0 comments on commit 5531d9e

Please sign in to comment.