Permalink
Browse files

bug fixes

  • Loading branch information...
1 parent 6825eec commit 9723afd1d099a02a96a8d5726cf49c8ee5fb3798 dhawes committed Dec 31, 2004
Showing with 2 additions and 5 deletions.
  1. +1 −1 blocks/rss_client/block_rss_client.php
  2. +0 −3 blocks/rss_client/block_rss_client_action.php
  3. +1 −1 rss/templib.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;
@@ -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
@@ -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

0 comments on commit 9723afd

Please sign in to comment.