From 46f0e774f382bcb9569228200c8392a169ea46a6 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sat, 21 Jan 2012 20:14:58 +0100 Subject: [PATCH] MDL-31173 fix variable name typo when throwing invalid $rule param exception in restore decode processor --- backup/util/helper/restore_decode_processor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup/util/helper/restore_decode_processor.class.php b/backup/util/helper/restore_decode_processor.class.php index 8716029881f..66dfbef5556 100644 --- a/backup/util/helper/restore_decode_processor.class.php +++ b/backup/util/helper/restore_decode_processor.class.php @@ -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);