]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for 6884
authortoyomoyo <toyomoyo>
Tue, 17 Oct 2006 06:25:50 +0000 (06:25 +0000)
committertoyomoyo <toyomoyo>
Tue, 17 Oct 2006 06:25:50 +0000 (06:25 +0000)
blocks/rss_client/block_rss_client.php
blocks/rss_client/config_instance_tabs.php

index d64a71a541ff30383d4ae38ff3ca23420eb5ea86..4e87d345470e861b9d1d1baa6115b2444c55d96a 100644 (file)
                                           'sesskey' => $USER->sesskey,
                                           'blockaction' => 'config',
                                           'currentaction' => 'managefeeds',
-                                          'id' => $this->courseid
+                                          'id' => $this->courseid,
+                                          'section' => 'rss'
                                           ));
                 $output .= '<div align="center"><a title="'. get_string('feedsaddedit', 'block_rss_client') .'" href="'. $script .'">'. get_string('feedsaddedit', 'block_rss_client') .'</a></div>';
             } else {
                                           'sesskey' => $USER->sesskey,
                                           'blockaction' => 'config',
                                           'currentaction' => 'configblock',
-                                          'id' => $this->courseid
+                                          'id' => $this->courseid,
+                                          'section' => 'rss'
                                           ));
                     $output .= '<div align="center"><a title="'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'" href="'. $script.'">'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'</a></div>';
                 }
index df21bea9b9a257481a2a48a41bdaffe1e4138822..728bd3156d5fad7751c3c0017f1a6fbeedbbc121 100644 (file)
@@ -9,12 +9,12 @@ $tabs = $row = array();
 $context = get_context_instance(CONTEXT_BLOCK, $this->instance->id);
 
 if (has_capability('moodle/site:manageblocks', $context)) {
-    $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock', 'id' => $id));
+    $script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'configblock', 'id' => $id, 'section' => 'rss'));
     $row[] = new tabobject('configblock', $script, 
                 get_string('configblock', 'block_rss_client'));
 }
 
-$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds', 'id' => $id));
+$script = $page->url_get_full(array('instanceid' => $this->instance->id, 'sesskey' => $USER->sesskey, 'blockaction' => 'config', 'currentaction' => 'managefeeds', 'id' => $id, 'section' => 'rss'));
 $row[] = new tabobject('managefeeds', $script, 
             get_string('managefeeds', 'block_rss_client'));