Permalink
Browse files

MDL-31173 fix variable name typo when throwing invalid $rule param ex…

…ception in restore decode processor
  • Loading branch information...
1 parent 6f42147 commit ddb621b78d2a22d37258bca956a77423964679d6 @skodak skodak committed with Sam Hemelryk Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/helper/restore_decode_processor.class.php
View
2 backup/util/helper/restore_decode_processor.class.php
@@ -63,7 +63,7 @@ public function add_content($content) {
public function add_rule($rule) {
if (!$rule instanceof restore_decode_rule) {
- throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($content));
+ throw new restore_decode_processor_exception('incorrect_restore_decode_rule', get_class($rule));
}
$rule->set_restoreid($this->restoreid);
$rule->set_wwwroots($this->sourcewwwroot, $this->targetwwwroot);

0 comments on commit ddb621b

Please sign in to comment.