Make linker warning useful
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Tue, 23 Sep 2014 07:13:33 +0000 (09:13 +0200)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Tue, 23 Sep 2014 07:13:33 +0000 (09:13 +0200)
Follow-up to I4c397de289ae51bc463b5ae

Change-Id: I4695172b13988fc333707e09fc9d909f20adb7c1

includes/Linker.php

index be850d0..1d327be 100644 (file)
@@ -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 "<!-- ERROR -->$html";
                }
                wfProfileIn( __METHOD__ );