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-23 16:07:10 +08:00
committed by Sam Hemelryk
parent 5d9e0f9291
commit 63e7733de5
@@ -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);