MDL-34019 Fix response item key name
authorDavid Mudrák <david@moodle.com>
Tue, 26 Jun 2012 07:12:35 +0000 (09:12 +0200)
committerDavid Mudrák <david@moodle.com>
Tue, 26 Jun 2012 07:12:35 +0000 (09:12 +0200)
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']);
         }
     }