com web/news: * Fix configuration for php.net * Fix an E_STRICT error with end(): include/common.inc
| From: | Kalle Sommer Nielsen | Date: | Wed, 27 Feb 2013 18:40:46 +0000 |
| Subject: | com web/news: * Fix configuration for php.net * Fix an E_STRICT error with end(): include/common.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15572@lists.php.net to get a copy of this message | ||
Commit: e1dad11da254178cf862ec67aa64e922e4365267
Author: Kalle Sommer Nielsen <kalle@php.net> Wed, 27 Feb 2013 19:40:46 +0100
Parents: 354b0d0e354db82bf07c1696105ccacef261e4a4
Branches: master
Link: http://git.php.net/?p=web/news.git;a=commitdiff;h=e1dad11da254178cf862ec67aa64e922e4365267
Log:
* Fix configuration for php.net
* Fix an E_STRICT error with end()
Changed paths:
M include/common.inc
Diff:
diff --git a/include/common.inc b/include/common.inc
index 2772cb5..2f6bc07 100644
--- a/include/common.inc
+++ b/include/common.inc
@@ -24,10 +24,14 @@ require 'include/preferences.inc';
require 'include/language.inc';
require 'include/template.inc';
-define('SERVER_NAME', 'www.tuxxedo.net');
-define('SERVER_PATH', '/phpdotnet/news/');
+$temp = explode('/', $_SERVER['SCRIPT_NAME']);
+
+define('SERVER_NAME', 'news.php.net');
+define('SERVER_PATH', '/');
define('NNTP_SERVER', 'news.php.net');
-define('SCRIPT_NAME', end(explode('/', $_SERVER['SCRIPT_NAME'])));
+define('SCRIPT_NAME', end($temp));
+
+unset($temp);
$langs = Array(
'en',