mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
should be fix for bug 3478
This commit is contained in:
parent
6bcfd67887
commit
d396889452
6 changed files with 61 additions and 45 deletions
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
require_once($CFG->libdir .'/rsslib.php');
|
||||
|
||||
$courseid = optional_param('courseid', SITEID, PARAM_INT);
|
||||
$id = optional_param('id', SITEID, PARAM_INT);
|
||||
|
||||
//create a page object for url_get_full()
|
||||
$page = page_create_object($this->instance->pagetype, $this->instance->pageid);
|
||||
|
@ -89,7 +89,7 @@ if ($currentaction == 'configblock') {
|
|||
} else {
|
||||
print_string('nofeeds', 'block_rss_client');
|
||||
if ( isadmin() ) {
|
||||
print ' <a href="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php?courseid='. $courseid .'"> '. get_string('editnewsfeeds', 'block_rss_client') .'</a><br />';
|
||||
print ' <a href="'. $CFG->wwwroot .'/blocks/rss_client/block_rss_client_action.php?id='. $id .'"> '. get_string('editnewsfeeds', 'block_rss_client') .'</a><br />';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@ -149,8 +149,8 @@ if ($currentaction == 'configblock') {
|
|||
global $act, $url, $rssid, $preferredtitle;
|
||||
print '<table cellpadding="9" cellspacing="0" class="blockconfigtable">';
|
||||
print '<tr valign="top"><td>';
|
||||
rss_display_feeds();
|
||||
rss_display_feeds($id);
|
||||
print '</form>'; //not sure that this is needed
|
||||
rss_get_form($act, $url, $rssid, $preferredtitle, $courseid);
|
||||
rss_print_form($act, $url, $rssid, $preferredtitle, $id);
|
||||
print '</td></tr></table>';
|
||||
} ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue