MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor

This commit is contained in:
Petr Skoda
2012-01-21 20:14:58 +01:00
parent f6b4ec2b4a
commit 46f0e774f3
@@ -63,7 +63,7 @@ class restore_decode_processor {
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);