MDL-26104 fix blocknameconflict component in get_string()
authorPetr Skoda <commits@skodak.org>
Sat, 29 Jan 2011 18:37:56 +0000 (19:37 +0100)
committerPetr Skoda <commits@skodak.org>
Sat, 29 Jan 2011 18:37:56 +0000 (19:37 +0100)
creadit goes to Howard Miller

lib/upgradelib.php

index 1ec90fa..81de9b7 100644 (file)
@@ -668,7 +668,7 @@ function upgrade_plugins_blocks($startcallback, $endcallback, $verbose) {
             if ($conflictblock !== false) {
                 // Duplicate block titles are not allowed, they confuse people
                 // AND PHP's associative arrays ;)
-                throw new plugin_defective_exception($component, get_string('blocknameconflict', '', (object)array('name'=>$block->name, 'conflict'=>$conflictblock)));
+                throw new plugin_defective_exception($component, get_string('blocknameconflict', 'error', (object)array('name'=>$block->name, 'conflict'=>$conflictblock)));
             }
             $startcallback($component, true, $verbose);