Merge branch 'MDL-34019-pluginlib-notice' of git://github.com/mudrd8mz/moodle into...
authorDan Poltawski <dan@moodle.com>
Mon, 2 Jul 2012 07:02:37 +0000 (15:02 +0800)
committerDan Poltawski <dan@moodle.com>
Mon, 2 Jul 2012 07:02:37 +0000 (15:02 +0800)
lib/pluginlib.php

index 75a8186..43de510 100644 (file)
@@ -811,7 +811,7 @@ class available_update_checker {
         }
 
         if (empty($response['forbranch']) or $response['forbranch'] !== moodle_major_version(true)) {
-            throw new available_update_checker_exception('err_response_target_version', $response['target']);
+            throw new available_update_checker_exception('err_response_target_version', $response['forbranch']);
         }
     }