From dde847152a79dd1f1e07daa7bcd72fe45f3803ec Mon Sep 17 00:00:00 2001 From: Daniel Werner Date: Thu, 5 Jul 2012 15:58:42 +0200 Subject: [PATCH] Linker::link() prints deprecated warning if $query is a string Change-Id: I47412b67b964ff0d868f181903628de3fd41365a --- includes/Linker.php | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1