|
From: <rgr...@us...> - 2014-03-16 03:03:05
|
Revision: 12380
http://sourceforge.net/p/xoops/svn/12380
Author: rgriffith
Date: 2014-03-16 03:03:00 +0000 (Sun, 16 Mar 2014)
Log Message:
-----------
Fix issue during install on some servers
If display_errors is on (a very bad choice for a production server,) the 'failed to open' warnings generated if mainfile.php doesn't exist can interfere with the headers that redirect to installer. The check that the file exists prevents us from stopping on a dead page during install.
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/index.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/index.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/index.php 2014-03-16 00:55:50 UTC (rev 12379)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/index.php 2014-03-16 03:03:00 UTC (rev 12380)
@@ -19,7 +19,9 @@
* @version $Id$
*/
-include dirname(__FILE__) . '/mainfile.php';
+if (file_exists(dirname(__FILE__) . '/mainfile.php')) {
+ include dirname(__FILE__) . '/mainfile.php';
+}
if (!defined('XOOPS_MAINFILE_INCLUDED')) {
if (file_exists(dirname(__FILE__) . '/install/index.php')) {
header('Location: install/index.php');
|