Website: fix old news URLS

Daniel Scharrer dscharrer at gmail.com
Fri Jan 16 17:19:17 CST 2009


---

 site |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/site b/site
index 69da02c..5a7bd46 100644
--- a/site
+++ b/site
@@ -98,6 +98,13 @@ if (defined("PAGE") and PAGE == "home")
         $html->redirect("{$config->base_url}announce/{$_GET['announce']}");
         exit();
     }
+
+    // fix old news URLS
+    if (isset($_GET['news']) and (intval($_GET['news']) > 0))
+    {
+        $html->redirect("{$config->base_url}news/{$_GET['news']}");
+        exit();
+    }
 }
 
 // loag page content




More information about the wine-cvs mailing list