mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto
synced 2024-11-27 17:50:06 +00:00
Replace trigger_error('') magic with error_clear_last()
Bug: T191247 Change-Id: I8bedd9c6df4648941c957d92fa8b0c8464f1d796
This commit is contained in:
parent
52fb5f8c21
commit
764847164a
|
@ -255,9 +255,7 @@ class Scribunto_LuaStandaloneInterpreter extends Scribunto_LuaInterpreter {
|
|||
|
||||
// Clear the "last error", so if proc_open fails we can know any
|
||||
// warning was generated by that.
|
||||
Wikimedia\suppressWarnings();
|
||||
trigger_error( '' );
|
||||
Wikimedia\restoreWarnings();
|
||||
error_clear_last();
|
||||
|
||||
$this->proc = proc_open(
|
||||
$cmd,
|
||||
|
|
Loading…
Reference in a new issue