Module: website Branch: master Commit: e44df8472c85bbff2f42ad6c1cc10f645974582e URL: http://source.winehq.org/git/website.git/?a=commit;h=e44df8472c85bbff2f42ad6...
Author: Daniel Scharrer dscharrer@gmail.com Date: Sat Jan 17 00:26:27 2009 +0100
Website: fix old news URLS
From 604450bb13bd2f2d086f7556951171459bbade2a Mon Sep 17 00:00:00 2001
From: Daniel Scharrer dscharrer@gmail.com Date: Sat, 17 Jan 2009 00:19:17 +0100 Subject: Website: fix old news URLS
---
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