Index: trunk/phase3/includes/Title.php |
— | — | @@ -152,6 +152,14 @@ |
153 | 153 | } |
154 | 154 | |
155 | 155 | /** |
| 156 | + * THIS IS NOT THE FUNCTION YOU WANT. Use Title::newFromText(). |
| 157 | + * |
| 158 | + * Example of wrong and broken code: |
| 159 | + * $title = Title::newFromURL( $wgRequest->getVal( 'title' ) ); |
| 160 | + * |
| 161 | + * Example of right code: |
| 162 | + * $title = Title::newFromText( $wgRequest->getVal( 'title' ) ); |
| 163 | + * |
156 | 164 | * Create a new Title from URL-encoded text. Ensures that |
157 | 165 | * the given title's length does not exceed the maximum. |
158 | 166 | * @param $url \type{\string} the title, as might be taken from a URL |