]> git.mjollnir.org Git - moodle.git/commitdiff
removed some debugging output accidently left in.
authorcap2501 <cap2501>
Sun, 8 Oct 2006 20:23:30 +0000 (20:23 +0000)
committercap2501 <cap2501>
Sun, 8 Oct 2006 20:23:30 +0000 (20:23 +0000)
lib/blocklib.php

index 6a978a1be99c2c31fca26ce8a5396a96d6b7793a..a4418c1905a1214952f807f223085d3fcc400a10 100644 (file)
@@ -746,7 +746,7 @@ function blocks_execute_repositioning_atomic(&$instance, $newpos, $newweight, $p
         $sql = 'UPDATE '. $CFG->prefix .'block_instance SET weight = weight + 1 WHERE pagetype = \''. $instance->pagetype.
                       '\' AND pageid = '. $instance->pageid .' AND position = \'' .$newpos.
             '\' AND weight >= '. $newweight;
-    }echo $sql;
+    }
     execute_sql($sql,false);
     
     
@@ -809,7 +809,7 @@ function blocks_get_by_page_pinned($page) {
         if (!array_key_exists($pos,$weights)) {
             $weights[$pos] = 0;
         }
-        foreach ($blocks as $block) {//echo("\r\nid=".$block->id."-");
+        foreach ($blocks as $block) {
             $pinned[$pos][$weights[$pos]] = $block;
             $weights[$pos]++;
         }
@@ -830,7 +830,7 @@ function blocks_get_by_page($page) {
         return $arr;
     }
 
-    foreach($blocks as $block) {//echo("id2=".$block->id);
+    foreach($blocks as $block) {
         $arr[$block->position][$block->weight] = $block;
     }