Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug fixes

  • Loading branch information...
commit 9723afd1d099a02a96a8d5726cf49c8ee5fb3798 1 parent 6825eec
dhawes authored
View
2  blocks/rss_client/block_rss_client.php
@@ -20,6 +20,7 @@ function specialization() {
}
function get_content() {
+ require_once($CFG->dirroot .'/rss/templib.php');
global $CFG, $editing;
if($this->content !== NULL) {
@@ -36,7 +37,6 @@ function get_content() {
return $this->content;
}
- require_once($CFG->dirroot .'/rss/templib.php');
$output = '';
$rssid = -1;
$display_description = false;
View
3  blocks/rss_client/block_rss_client_action.php
@@ -26,9 +26,6 @@
print_header('Add/Edit RSS Feeds','Add/Edit RSS Feeds','Add/Edit RSS Feeds' );
//check to make sure that the user is allowed to post new feeds
- if (empty( $CFG->block_rss_client_submitters)) {
- $CFG->block_rss_client_submitters = 0;
- }
$submitters = $CFG->block_rss_client_submitters;
$isteacher = false;
if ($courseid != 'none'){
View
2  rss/templib.php
@@ -4,7 +4,7 @@
//initialize config vars for rss_client block if missing
if (empty($CFG->block_rss_client_submitters) ) {
- $CFG->block_rss_client_submitters = 2; //default to admin only
+ $CFG->block_rss_client_submitters = 1; //default to admin only
}
if (empty($CFG->block_rss_client_num_entries) ) {
$CFG->block_rss_client_num_entries = 5; //default to 5 entries per block
Please sign in to comment.
Something went wrong with that request. Please try again.