]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
error reporting level set in E_ALL & ~E_NOTICE by default, can be overriden in config 716/head
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>
Mon, 2 Jun 2014 15:00:09 +0000 (18:00 +0300)
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>
Mon, 2 Jun 2014 15:00:09 +0000 (18:00 +0300)
inc/3rdparty/makefulltextfeed.php
inc/poche/Tools.class.php
inc/poche/config.inc.default.php
index.php

index 7a56be8c7c967cec629d0129feb3bb72d4ee8249..62c050ec2bc368fd63fd265da8bfa1b888453782 100755 (executable)
@@ -28,7 +28,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 // Request this file passing it a web page or feed URL in the querystring: makefulltextfeed.php?url=example.org/article\r
 // For more request parameters, see http://help.fivefilters.org/customer/portal/articles/226660-usage\r
 \r
-error_reporting(E_ALL ^ E_NOTICE);\r
+//error_reporting(E_ALL ^ E_NOTICE);\r
 ini_set("display_errors", 1);\r
 @set_time_limit(120);\r
 \r
index 8073a3fe88d77c28ead1fa6e7242933322d687fe..1ef875c91ba7c23c62c738ca3cc0bc7e488c9996 100755 (executable)
@@ -18,8 +18,6 @@ class Tools
             die(_('Oops, it seems you don\'t have PHP 5.'));
         }
 
-        error_reporting(E_ALL);
-
         function stripslashesDeep($value) {
             return is_array($value)
                 ? array_map('stripslashesDeep', $value)
@@ -64,7 +62,7 @@ class Tools
         if (strpos($host, ':') !== false) {
             $serverport = '';
         }
-        
+
         return 'http' . ($https ? 's' : '') . '://'
             . $host . $serverport . $scriptname;
     }
index ffcd205d859d3b2cd4db64a68de5df140cd6abc4..95f727c6889f760661b63573d27ef6767d752595 100755 (executable)
 
 @define ('MODE_DEMO', FALSE);
 @define ('DEBUG_POCHE', FALSE);
+
+//default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL.
+@define ('ERROR_REPORTING', E_ALL & ~E_NOTICE);
+
 @define ('DOWNLOAD_PICTURES', FALSE); # This can slow down the process of adding articles
 @define ('REGENERATE_PICTURES_QUALITY', 75);
 @define ('CONVERT_LINKS_FOOTNOTES', FALSE);
index 472e0fabc20e3d34885367999e7258fd7a187567..c134b1035275f9eb1a2fb24e2e019e925a678d7f 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -12,6 +12,11 @@ define ('POCHE', '1.7.0');
 require 'check_setup.php';
 require_once 'inc/poche/global.inc.php';
 
+# Set error reporting level
+if (defined('ERROR_REPORTING')) {\r
+       error_reporting(ERROR_REPORTING);\r
+}
+
 # Start session
 Session::$sessionName = 'poche';
 Session::init();