]> git.mjollnir.org Git - moodle.git/commitdiff
Give an id attribute to the "Add Blocks" block so that the new hide/show
authordefacer <defacer>
Tue, 8 Feb 2005 00:00:21 +0000 (00:00 +0000)
committerdefacer <defacer>
Tue, 8 Feb 2005 00:00:21 +0000 (00:00 +0000)
provisions in weblib don't print notices.

lib/blocklib.php

index fc9d00c9722dd4e866e674fffef842ef8a8d7a21..467aba0b0902d0bc3b8032ab868db75951480259 100644 (file)
@@ -562,7 +562,7 @@ function blocks_print_adminblock(&$page, &$pageblocks) {
         $target = $page->url_get_full(array('sesskey' => $USER->sesskey, 'blockaction' => 'add'));
         $content = popup_form($target.'&amp;blockid=', $menu, 'add_block', '', $stradd .'...', '', '', true);
         $content = '<div style="text-align: center;">'. $content .'</div>';
-        print_side_block($strblocks, $content, NULL, NULL, NULL);
+        print_side_block($strblocks, $content, NULL, NULL, NULL, array('id' => 'block_adminblock'));
     }
 }