Jeremy Newman : fix some deprecated functions
Jeremy Newman
jnewman at winehq.org
Thu Apr 12 14:53:42 CDT 2012
Module: website
Branch: master
Commit: 0c420b931e776b7552ac9c6d7ccdbede6b400b0b
URL: http://source.winehq.org/git/website.git/?a=commit;h=0c420b931e776b7552ac9c6d7ccdbede6b400b0b
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Thu Apr 12 14:08:47 2012 -0500
fix some deprecated functions
---
site | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/site b/site
index 5a7bd46..70499c7 100644
--- a/site
+++ b/site
@@ -18,7 +18,7 @@ if (!preg_match('/\/$/', $_SERVER['PHP_SELF']))
if (isset($_SERVER['PATH_INFO']))
{
// set the Current Page
- $dirs = split('/', $_SERVER['PATH_INFO']);
+ $dirs = preg_split('/\//', $_SERVER['PATH_INFO']);
array_shift($dirs);
if (count($dirs) > 1)
{
@@ -59,8 +59,8 @@ if (isset($_SERVER['PATH_INFO']))
// cleanup and define page
$page = join('/',$good_dirs);
- if (ereg('/$', $page))
- $page = ereg_replace('/$', '', $page);
+ if (preg_match('/\/$/', $page))
+ $page = preg_replace('/\/$/', '', $page);
unset($c);
}
else
More information about the wine-cvs
mailing list