CVS update: /cowiki/htdocs/
[email protected] 9 Jun 2005 01:41:36 -0000
| Newsgroups | gmane.comp.php.cowiki.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: dgorski Date: 2005/06/08 18:41:36 Modified: cowiki/htdocs/index.php cowiki/htdocs/admin.php Log: Issue #230: If error reporting level is not set to E_ALL, suppress all notices, warnings and/or errors - or vice versa: the error reporting level needs to be set to E_ALL for coWiki to display notices, warnings or errors in browser output. File Changes: Directory: /cowiki/htdocs/ ========================== File [changed]: index.php Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/index.php?r1=1.39&r2=1.40 Delta lines: +10 -3 -------------------- --- index.php 16 May 2005 22:20:53 -0000 1.39 +++ index.php 9 Jun 2005 01:41:33 -0000 1.40 @@ -2,7 +2,7 @@ /** * - * $Id: index.php,v 1.39 2005/05/16 22:20:53 dgorski Exp $ + * $Id: index.php,v 1.40 2005/06/09 01:41:33 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -16,7 +16,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.39 $ + * @version $Revision: 1.40 $ * */ @@ -30,6 +30,14 @@ * @since coWiki 0.3.0 */ + // If error reporting level is not set to E_ALL, suppress all notices, + // warnings and/or errors - or vice versa: the error reporting level + // needs to be set to E_ALL for coWiki to display notices, warnings or + // errors in browser output. + if ((ini_get('error_reporting') & E_ALL) == 0) { + error_reporting(0); + } + // -------------------------------------------------------------------- // If the file 'install.pending' exists in this directory, the @@ -39,7 +47,6 @@ // been set up yet or was updated recently. // // The wizard itself is located in the 'setup/' folder. - if (file_exists(realpath(dirname(__FILE__)) . '/install.pending')) { // FIX: scheme (https) and port (other than 80) File [changed]: admin.php Url: http://cowiki.tigris.org/source/browse/cowiki/htdocs/admin.php?r1=1.18&r2=1.19 Delta lines: +12 -2 -------------------- --- admin.php 16 May 2005 22:20:53 -0000 1.18 +++ admin.php 9 Jun 2005 01:41:34 -0000 1.19 @@ -2,7 +2,7 @@ /** * - * $Id: admin.php,v 1.18 2005/05/16 22:20:53 dgorski Exp $ + * $Id: admin.php,v 1.19 2005/06/09 01:41:34 dgorski Exp $ * * This file is part of coWiki. coWiki is free software under the terms of * the GNU General Public License (GPL). Read the LICENSE file. If you did @@ -17,7 +17,7 @@ * @author Daniel T. Gorski, <[email protected]> * @copyright (C) Daniel T. Gorski, {@link http://www.develnet.org} * @license http://www.gnu.org/licenses/gpl.html - * @version $Revision: 1.18 $ + * @version $Revision: 1.19 $ * */ @@ -33,6 +33,16 @@ * * @todo [D11N] Complete documentation */ + + // If error reporting level is not set to E_ALL, suppress all notices, + // warnings and/or errors - or vice versa: the error reporting level + // needs to be set to E_ALL for coWiki to display notices, warnings or + // errors in browser output. + if ((ini_get('error_reporting') & E_ALL) == 0) { + error_reporting(0); + } + + // -------------------------------------------------------------------- // If the file 'install.pending' exists in this directory, the // setup wizard (installer) has to be invoked to check structural