Skip to content

Commit

Permalink
Maths: Do not show settings link in RSS/Atom feeds #4057
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Aug 14, 2012
1 parent a9c6d45 commit 253f4a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions feed.php
Expand Up @@ -16,9 +16,9 @@


/** /**
* Serve Atom/RSS feed. * Serve Atom/RSS feed.
* @package mod *
* @subpackage forumng * @package mod_forumng
* @copyright 2011 The Open University * @copyright 2012 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */


Expand Down Expand Up @@ -109,6 +109,12 @@
} }
header('Last-Modified: ' .gmdate('D, d M Y H:i:s', $latest) . ' GMT'); header('Last-Modified: ' .gmdate('D, d M Y H:i:s', $latest) . ' GMT');


// This variable is used by the MathML filter so that we can make it do
// different things with RSS feed output (basically it turns off everything
// clever and uses an image).
global $ou_feed_output;
$ou_feed_output = true;

// Check they still have permission to the forum. // Check they still have permission to the forum.
// Note that making these checks is a bit expensive so we might have // Note that making these checks is a bit expensive so we might have
// a performance concern, will deal with that later if needed. This is done // a performance concern, will deal with that later if needed. This is done
Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -22,7 +22,7 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/ */


$module->version = 2012081300; $module->version = 2012081301;
$module->requires = 2011120100; $module->requires = 2011120100;
$module->cron = 60; $module->cron = 60;


Expand Down

0 comments on commit 253f4a2

Please sign in to comment.