From: Niklas Laxström Date: Tue, 23 Sep 2014 07:13:33 +0000 (+0200) Subject: Make linker warning useful X-Git-Tag: 1.31.0-rc.0~13881 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/Dunav?a=commitdiff_plain;h=368a948bb6aeee7ce8e0f5da06ab81cef7029574;p=lhc%2Fweb%2Fwiklou.git Make linker warning useful Follow-up to I4c397de289ae51bc463b5ae Change-Id: I4695172b13988fc333707e09fc9d909f20adb7c1 --- diff --git a/includes/Linker.php b/includes/Linker.php index be850d02fa..1d327be628 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -193,7 +193,7 @@ class Linker { $target, $html = null, $customAttribs = array(), $query = array(), $options = array() ) { if ( !$target instanceof Title ) { - wfWarn( __METHOD__ . ': Requires $target to be a Title object.' ); + wfWarn( __METHOD__ . ': Requires $target to be a Title object.', 2 ); return "$html"; } wfProfileIn( __METHOD__ );