From 51107443dc1f988711ed528591d3a8435942c28c Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Sat, 23 Jan 2010 17:48:02 +0000 Subject: [PATCH] API: Fix bug where deprecated boolean parameters would always trigger the deprecated warning. --- includes/api/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index cebda0a5cf..785715c67b 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -631,7 +631,7 @@ abstract class ApiBase { $value = array_unique( $value ); // Set a warning if a deprecated parameter has been passed - if ( $deprecated ) { + if ( $deprecated && $value !== false ) { $this->setWarning( "The $encParamName parameter has been deprecated." ); } } -- 2.20.1