mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
error reporting level set in E_ALL & ~E_NOTICE by default, can be overriden in config
This commit is contained in:
parent
5d198e2b98
commit
752cd4a8ef
4 changed files with 11 additions and 4 deletions
2
inc/3rdparty/makefulltextfeed.php
vendored
2
inc/3rdparty/makefulltextfeed.php
vendored
|
@ -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
|
// Request this file passing it a web page or feed URL in the querystring: makefulltextfeed.php?url=example.org/article
|
||||||
// For more request parameters, see http://help.fivefilters.org/customer/portal/articles/226660-usage
|
// For more request parameters, see http://help.fivefilters.org/customer/portal/articles/226660-usage
|
||||||
|
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
//error_reporting(E_ALL ^ E_NOTICE);
|
||||||
ini_set("display_errors", 1);
|
ini_set("display_errors", 1);
|
||||||
@set_time_limit(120);
|
@set_time_limit(120);
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ class Tools
|
||||||
die(_('Oops, it seems you don\'t have PHP 5.'));
|
die(_('Oops, it seems you don\'t have PHP 5.'));
|
||||||
}
|
}
|
||||||
|
|
||||||
error_reporting(E_ALL);
|
|
||||||
|
|
||||||
function stripslashesDeep($value) {
|
function stripslashesDeep($value) {
|
||||||
return is_array($value)
|
return is_array($value)
|
||||||
? array_map('stripslashesDeep', $value)
|
? array_map('stripslashesDeep', $value)
|
||||||
|
@ -64,7 +62,7 @@ class Tools
|
||||||
if (strpos($host, ':') !== false) {
|
if (strpos($host, ':') !== false) {
|
||||||
$serverport = '';
|
$serverport = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'http' . ($https ? 's' : '') . '://'
|
return 'http' . ($https ? 's' : '') . '://'
|
||||||
. $host . $serverport . $scriptname;
|
. $host . $serverport . $scriptname;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,6 +30,10 @@
|
||||||
|
|
||||||
@define ('MODE_DEMO', FALSE);
|
@define ('MODE_DEMO', FALSE);
|
||||||
@define ('DEBUG_POCHE', 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 ('DOWNLOAD_PICTURES', FALSE); # This can slow down the process of adding articles
|
||||||
@define ('REGENERATE_PICTURES_QUALITY', 75);
|
@define ('REGENERATE_PICTURES_QUALITY', 75);
|
||||||
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
|
@define ('CONVERT_LINKS_FOOTNOTES', FALSE);
|
||||||
|
|
|
@ -12,6 +12,11 @@ define ('POCHE', '1.7.0');
|
||||||
require 'check_setup.php';
|
require 'check_setup.php';
|
||||||
require_once 'inc/poche/global.inc.php';
|
require_once 'inc/poche/global.inc.php';
|
||||||
|
|
||||||
|
# Set error reporting level
|
||||||
|
if (defined('ERROR_REPORTING')) {
|
||||||
|
error_reporting(ERROR_REPORTING);
|
||||||
|
}
|
||||||
|
|
||||||
# Start session
|
# Start session
|
||||||
Session::$sessionName = 'poche';
|
Session::$sessionName = 'poche';
|
||||||
Session::init();
|
Session::init();
|
||||||
|
|
Loading…
Reference in a new issue