MDL-29978 install - dependencies must be checked against disk (target) versions
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 27 Oct 2011 23:39:18 +0000 (01:39 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 27 Oct 2011 23:41:04 +0000 (01:41 +0200)
admin/renderer.php
lib/pluginlib.php

index 7c23e2c..be5780b 100644 (file)
@@ -598,7 +598,7 @@ class core_admin_renderer extends plugin_renderer_base {
             if (is_null($otherplugin)) {
                 $ok = false;
             }
-            if ($requiredversion != ANY_VERSION and $otherplugin->versiondb < $requiredversion) {
+            if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
                 $ok = false;
             }
 
index 02719a7..ab01833 100644 (file)
@@ -241,7 +241,7 @@ class plugin_manager {
                 return false;
             }
 
-            if ($requiredversion != ANY_VERSION and $otherplugin->versiondb < $requiredversion) {
+            if ($requiredversion != ANY_VERSION and $otherplugin->versiondisk < $requiredversion) {
                 return false;
             }
         }