MDL-23196 html block - prevent this update to happen. It cleans all the HTML blocks!
authorEloy Lafuente <stronk7@moodle.org>
Fri, 16 Jul 2010 16:16:17 +0000 (16:16 +0000)
committerEloy Lafuente <stronk7@moodle.org>
Fri, 16 Jul 2010 16:16:17 +0000 (16:16 +0000)
blocks/html/db/upgrade.php

index c10e6f4..8389714 100644 (file)
@@ -34,7 +34,7 @@ function xmldb_block_html_upgrade($oldversion) {
 
     $dbman = $DB->get_manager();
 
-    if ($oldversion < 2010071501) {
+    if ($oldversion < 2010071501 && false) { // TODO: MDL-23196 !!!
         $params = array();
         $sql = "SELECT * FROM {block_instances} b WHERE b.blockname = :blockname";
         $params['blockname'] = 'html';