dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
42e8b0a
)
Deprecate the escape methods in Title.
author
Daniel Friesen
<dantman@users.mediawiki.org>
Mon, 12 Dec 2011 19:23:38 +0000
(19:23 +0000)
committer
Daniel Friesen
<dantman@users.mediawiki.org>
Mon, 12 Dec 2011 19:23:38 +0000
(19:23 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
edbd4c2
..
6b4aad9
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-1204,6
+1204,7
@@
class Title {
* @return String the text, including any prefixes
*/
public function getEscapedText() {
* @return String the text, including any prefixes
*/
public function getEscapedText() {
+ wfDeprecated( __METHOD__, '1.19' );
return htmlspecialchars( $this->getPrefixedText() );
}
return htmlspecialchars( $this->getPrefixedText() );
}
@@
-1406,6
+1407,7
@@
class Title {
* @return String the URL
*/
public function escapeLocalURL( $query = '', $query2 = false ) {
* @return String the URL
*/
public function escapeLocalURL( $query = '', $query2 = false ) {
+ wfDeprecated( __METHOD__, '1.19' );
return htmlspecialchars( $this->getLocalURL( $query, $query2 ) );
}
return htmlspecialchars( $this->getLocalURL( $query, $query2 ) );
}
@@
-1417,6
+1419,7
@@
class Title {
* @return String the URL
*/
public function escapeFullURL( $query = '', $query2 = false ) {
* @return String the URL
*/
public function escapeFullURL( $query = '', $query2 = false ) {
+ wfDeprecated( __METHOD__, '1.19' );
return htmlspecialchars( $this->getFullURL( $query, $query2 ) );
}
return htmlspecialchars( $this->getFullURL( $query, $query2 ) );
}