Ticket #493 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

rss.config.restrictrefresh = true and rss.config.refreshafter > 0 causes failed updates

Reported by: reporter Assigned to: mbonetti
Priority: normal Milestone:
Component: BUGS Version:
Severity: normal Keywords:
Cc:

Description

If you have rss.config.restrictrefresh set to true and rss.config.refreshafter greater then 0, the index page still attempts to fire-off a refresh and fails.

Change History

09/24/07 07:39:22 changed by reporter

I can't attach a file, so patch inline

Index: themes/default/web/header.php
===================================================================
--- themes/default/web/header.php       (revision 1756)
+++ themes/default/web/header.php       (working copy)
@@ -6,7 +6,7 @@
        <link rel="stylesheet" type="text/css" href="<?php echo getPath() ?>css/print.css" media="print" />
        <?php echo rss_scheme_stylesheets(); ?>
 <?php echo rss_plugin_hook('rss.plugins.stylesheets', null); ?>
-<?php if(rss_header_autorefreshtime() > 0) { ?>
+<?php if(rss_header_autorefreshtime() > 0 && !getConfig('rss.config.restrictrefresh')) { ?>
        <meta http-equiv="refresh"  content="<?php echo rss_header_autorefreshtime(); ?>;<?php echo rss_header_autorefreshurl() ?>" />
 <?php } ?>
 <?php

09/24/07 10:02:06 changed by mbonetti

  • status changed from new to closed.
  • resolution set to fixed.

Looks fine, thanks for the patch (applied in [1757])