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:
90e29f3
)
Fixed documentation on Title::newFromURL(). Never use this function.
author
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 2 Jun 2009 04:05:47 +0000
(
04:05
+0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Tue, 2 Jun 2009 04:05:47 +0000
(
04:05
+0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
baea55e
..
d373c16
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-152,6
+152,14
@@
class Title {
}
/**
+ * THIS IS NOT THE FUNCTION YOU WANT. Use Title::newFromText().
+ *
+ * Example of wrong and broken code:
+ * $title = Title::newFromURL( $wgRequest->getVal( 'title' ) );
+ *
+ * Example of right code:
+ * $title = Title::newFromText( $wgRequest->getVal( 'title' ) );
+ *
* Create a new Title from URL-encoded text. Ensures that
* the given title's length does not exceed the maximum.
* @param $url \type{\string} the title, as might be taken from a URL