Skip to content

Commit

Permalink
removed some debugging output accidently left in.
Browse files Browse the repository at this point in the history
  • Loading branch information
cap2501 committed Oct 8, 2006
1 parent e028ed3 commit 77e65ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/blocklib.php
Expand Up @@ -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);


Expand Down Expand Up @@ -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]++;
}
Expand All @@ -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;
}

Expand Down

0 comments on commit 77e65ff

Please sign in to comment.