From 113072bdd72c3c37f52c77f095960543919ec2cb Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Tue, 19 Oct 2010 07:46:26 +0000 Subject: [PATCH] MDL-24759 fixing incorrect skipping on non-url file type resources, credit goes to Tim Lock --- mod/url/db/upgradelib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/url/db/upgradelib.php b/mod/url/db/upgradelib.php index c47b733ee93..8ff7adcf64a 100644 --- a/mod/url/db/upgradelib.php +++ b/mod/url/db/upgradelib.php @@ -63,13 +63,13 @@ function url_20_migrate() { continue; } else if (!strpos($path, '://')) { // not URL - return; + continue; } else if (preg_match("|$CFG->wwwroot/file.php(\?file=)?/$siteid(/[^\s'\"&\?#]+)|", $path, $matches)) { // handled by resource module - return; + continue; } else if (preg_match("|$CFG->wwwroot/file.php(\?file=)?/$candidate->course(/[^\s'\"&\?#]+)|", $path, $matches)) { // handled by resource module - return; + continue; } upgrade_set_timeout(); -- 2.43.0