From: Daniel Werner Date: Thu, 5 Jul 2012 13:58:42 +0000 (+0200) Subject: Linker::link() prints deprecated warning if $query is a string X-Git-Tag: 1.31.0-rc.0~22816^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=dde847152a79dd1f1e07daa7bcd72fe45f3803ec;p=lhc%2Fweb%2Fwiklou.git Linker::link() prints deprecated warning if $query is a string Change-Id: I47412b67b964ff0d868f181903628de3fd41365a --- diff --git a/includes/Linker.php b/includes/Linker.php index 9fcac6580f..70dac96242 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -198,6 +198,11 @@ class Linker { wfProfileOut( __METHOD__ ); return "$html"; } + + if( is_string( $query ) ) { + // some functions withing core using this still hand over query strings + wfDeprecated( __METHOD__ . ' with parameter $query as string (should be array)', '1.20' ); + } $options = (array)$options; $dummy = new DummyLinker; // dummy linker instance for bc on the hooks