]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14129, fix print_error() calls
authordongsheng <dongsheng>
Fri, 11 Apr 2008 08:13:08 +0000 (08:13 +0000)
committerdongsheng <dongsheng>
Fri, 11 Apr 2008 08:13:08 +0000 (08:13 +0000)
admin/blocks.php
admin/cliupgrade.php

index d585b9f9779d76277e340b0d45689f5c268f32c0..dcbda49466c9721b4c301607c4dc60857188c4f9 100644 (file)
 /// Get and sort the existing blocks
 
     if (false === ($blocks = get_records('block'))) {
-        print_error('No blocks found!');  // Should never happen
+        print_error('noblocks', 'error');  // Should never happen
     }
 
     $incompatible = array();
     }
 
     if(empty($blockbyname)) {
-        print_error('One or more blocks are registered in the database, but they all failed to load!');
+        print_error('failtoloadblocks', 'error');
     }
 
     ksort($blockbyname);
index c5035da6b3d6daf2a7d56fe3a37e643c8a310b91..b2189ceccebf26a7cfb5218a8893421ff782fdac 100644 (file)
@@ -1234,10 +1234,10 @@ if ( file_exists(dirname(dirname(__FILE__)) . '/config.php')) {
                 mark_context_dirty('/'.SYSCONTEXTID);
                 // do nothing
             } else {
-                print_error("Serious Error! Could not set up a default course category!");
+                print_error('cannotsetupcategory', 'error');
             }
         } else {
-            print_error("Serious Error! Could not set up the site!");
+            print_error('cannotsetupsite', 'error');
         }
     }