Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit 52424fa

Browse files
edg2sMatmaRex
authored andcommitted
Main Page title: Ignore PHP warnings in output of eval.php
1 parent bade96a commit 52424fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

localsettings/core.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Generic verbose error reporting stuff
2+
$isCli = PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg';
23
error_reporting( -1 );
34
ini_set( 'display_startup_errors', 1 );
4-
ini_set( 'display_errors', 1 );
5+
ini_set( 'display_errors', $isCli ? 'stderr' : 1 );
56
$wgShowSQLErrors = true;
67
$wgDebugDumpSql = true;
78
$wgShowDBErrorBacktrace = true;

new/postinstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -ex
33

44
# update Main_Page
55
sleep 1 # Ensure edit appears after creation in history
6-
MAINPAGETITLE=$( echo 'echo Title::newMainPage()->getDBkey();' | php $PATCHDEMO/wikis/$NAME/w/maintenance/eval.php )
6+
MAINPAGETITLE=$( echo 'echo Title::newMainPage()->getDBkey();' | php $PATCHDEMO/wikis/$NAME/w/maintenance/eval.php 2> /dev/null )
77
echo "$MAINPAGE" | php $PATCHDEMO/wikis/$NAME/w/maintenance/edit.php "$MAINPAGETITLE"
88

99
# run update script (#166, #244)

0 commit comments

Comments
 (0)