Jeremy Newman : fix for prev/next news page links

Jeremy Newman jnewman at winehq.org
Thu Jan 8 11:14:54 CST 2009


Module: website
Branch: master
Commit: aed971d3bd679f5dd5d7fc8e296bc0d6b4c39a50
URL:    http://source.winehq.org/git/website.git/?a=commit;h=aed971d3bd679f5dd5d7fc8e296bc0d6b4c39a50

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Thu Jan  8 11:14:24 2009 -0600

fix for prev/next news page links

---

 include/plugins/news.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/plugins/news.php b/include/plugins/news.php
index bda5eef..2606b4e 100644
--- a/include/plugins/news.php
+++ b/include/plugins/news.php
@@ -13,7 +13,7 @@ global $html, $config;
 switch (true)
 {
     // single issue view
-    case (defined('PAGE_PARAMS') and preg_match("/[0-9]+/", PAGE_PARAMS)):
+    case (defined('PAGE_PARAMS') and preg_match("/[0-9]{10}/", PAGE_PARAMS)):
         // get data from XML file
         $item = PAGE_PARAMS . '.xml';
         $vars = array();




More information about the wine-cvs mailing list