From: Daniel Friesen Date: Mon, 12 Dec 2011 19:23:38 +0000 (+0000) Subject: Deprecate the escape methods in Title. X-Git-Tag: 1.31.0-rc.0~26034 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=0ffccfcb694ccb453f5f9b5163d30b37ca8257d0;p=lhc%2Fweb%2Fwiklou.git Deprecate the escape methods in Title. --- diff --git a/includes/Title.php b/includes/Title.php index edbd4c2f62..6b4aad9058 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1204,6 +1204,7 @@ class Title { * @return String the text, including any prefixes */ public function getEscapedText() { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getPrefixedText() ); } @@ -1406,6 +1407,7 @@ class Title { * @return String the URL */ public function escapeLocalURL( $query = '', $query2 = false ) { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getLocalURL( $query, $query2 ) ); } @@ -1417,6 +1419,7 @@ class Title { * @return String the URL */ public function escapeFullURL( $query = '', $query2 = false ) { + wfDeprecated( __METHOD__, '1.19' ); return htmlspecialchars( $this->getFullURL( $query, $query2 ) ); }