Skip to content

Commit

Permalink
Moved rsslib.php from the rss directory to the lib directory with the
Browse files Browse the repository at this point in the history
other libraries
  • Loading branch information
moodler committed Jan 25, 2005
1 parent 371a2ed commit 48b29ba
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 16 deletions.
4 changes: 2 additions & 2 deletions blocks/rss_client/block_rss_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function specialization() {
function get_content() {
global $CFG, $editing;

require_once($CFG->dirroot .'/rss/rsslib.php');
require_once($CFG->libdir .'/rsslib.php');

if($this->content !== NULL) {
return $this->content;
Expand Down Expand Up @@ -191,4 +191,4 @@ function get_rss_by_id($rssid, $display_description, $shownumentries, $showtitle
return $returnstring;
}
}
?>
?>
5 changes: 2 additions & 3 deletions blocks/rss_client/block_rss_client_action.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<?php //$Id$

require_once('../../config.php');
require_once($CFG->dirroot .'/rss/rsslib.php');
require_once($CFG->libdir .'/rsslib.php');
require_once(MAGPIE_DIR .'rss_fetch.inc');
global $USER, $CFG;


require_login();

//ensure that the logged in user is not using the guest account
Expand Down
5 changes: 2 additions & 3 deletions blocks/rss_client/block_rss_client_error.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?php //$Id$

require_once('../../config.php');
global $USER, $CFG;

require_variable($error);

print_header(get_string('error'),
get_string('error'),
get_string('error') );

print urldecode($error);
echo clean_text(urldecode($error));

print_footer();
?>
?>
4 changes: 2 additions & 2 deletions blocks/rss_client/config_global.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
require_once($CFG->dirroot .'/rss/rsslib.php');
require_once($CFG->libdir .'/rsslib.php');
?>
<table cellpadding="9" cellspacing="0">
<tr valign="top">
Expand Down Expand Up @@ -45,4 +45,4 @@

<td colspan="3" align="center"><a href=" <?php echo $CFG->wwwroot; ?>/blocks/rss_client/block_rss_client_action.php?courseid=<?php echo $courseid; ?>"><?php print_string('block_rss_feeds_add_edit', 'block_rss_client')?></a></center><br /><br />
</td>
</table>
</table>
File renamed without changes.
2 changes: 1 addition & 1 deletion mod/forum/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once("../../config.php");
require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php");
require_once("$CFG->libdir/rsslib.php");

optional_variable($id); // course

Expand Down
2 changes: 1 addition & 1 deletion mod/forum/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require_once("../../config.php");
require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php");
require_once("$CFG->libdir/rsslib.php");

$id = optional_param('id', 0, PARAM_INT); // Course Module ID
$f = optional_param('f', 0, PARAM_INT); // Forum ID
Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

require_once("../../config.php");
require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php");
require_once("$CFG->libdir/rsslib.php");

require_variable($id); // course

Expand Down
2 changes: 1 addition & 1 deletion mod/glossary/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/// This page prints a particular instance of glossary
require_once("../../config.php");
require_once("lib.php");
require_once("$CFG->dirroot/rss/rsslib.php");
require_once("$CFG->libdir/rsslib.php");

global $CFG, $THEME, $USER;
$debug = 0;
Expand Down
4 changes: 2 additions & 2 deletions rss/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
$nomoodlecookie = true; // Because it interferes with caching

require_once('../config.php');
require_once('../files/mimetypes.php');
require_once('rsslib.php');
require_once($CFG->dirroot.'/files/mimetypes.php');
require_once($CFG->libdir.'/rsslib.php');


$lifetime = 3600; // Seconds for files to remain in caches - 1 hour
Expand Down

0 comments on commit 48b29ba

Please sign in to comment.