Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | * @return Status Status |
208 | 208 | */ |
209 | 209 | protected function appendToUploadFile( $srcPath, $toAppendPath ) { |
210 | | - wfDeprecated(__METHOD__); |
| 210 | + wfDeprecated( __METHOD__, '1.19' ); |
211 | 211 | |
212 | 212 | $repo = RepoGroup::singleton()->getLocalRepo(); |
213 | 213 | $status = $repo->append( $srcPath, $toAppendPath ); |
— | — | @@ -222,7 +222,7 @@ |
223 | 223 | * @return Status Status |
224 | 224 | */ |
225 | 225 | protected function appendFinish( $toAppendPath ) { |
226 | | - wfDeprecated(__METHOD__); |
| 226 | + wfDeprecated( __METHOD__, '1.19' ); |
227 | 227 | |
228 | 228 | $repo = RepoGroup::singleton()->getLocalRepo(); |
229 | 229 | $status = $repo->appendFinish( $toAppendPath ); |
Index: trunk/phase3/includes/search/SearchEngine.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | * @deprecated since 1.18 Call supports( 'list-redirects' ); |
69 | 69 | */ |
70 | 70 | function acceptListRedirects() { |
| 71 | + wfDeprecated( __METHOD__, '1.18' ); |
71 | 72 | return $this->supports( 'list-redirects' ); |
72 | 73 | } |
73 | 74 | |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -270,6 +270,7 @@ |
271 | 271 | * @deprecated in 1.19; use fetchContent() |
272 | 272 | */ |
273 | 273 | function loadContent() { |
| 274 | + wfDeprecated( __METHOD__, '1.19' ); |
274 | 275 | $this->fetchContent(); |
275 | 276 | } |
276 | 277 | |
— | — | @@ -338,7 +339,7 @@ |
339 | 340 | * @deprecated since 1.18 |
340 | 341 | */ |
341 | 342 | public function forUpdate() { |
342 | | - wfDeprecated( __METHOD__ ); |
| 343 | + wfDeprecated( __METHOD__, '1.18' ); |
343 | 344 | } |
344 | 345 | |
345 | 346 | /** |
— | — | @@ -1620,6 +1621,7 @@ |
1621 | 1622 | * @deprecated since 1.19 |
1622 | 1623 | */ |
1623 | 1624 | public function info() { |
| 1625 | + wfDeprecated( __METHOD__, '1.19' ); |
1624 | 1626 | Action::factory( 'info', $this )->show(); |
1625 | 1627 | } |
1626 | 1628 | |
— | — | @@ -1628,6 +1630,7 @@ |
1629 | 1631 | * @deprecated since 1.18 |
1630 | 1632 | */ |
1631 | 1633 | public function markpatrolled() { |
| 1634 | + wfDeprecated( __METHOD__, '1.18' ); |
1632 | 1635 | Action::factory( 'markpatrolled', $this )->show(); |
1633 | 1636 | } |
1634 | 1637 | |
— | — | @@ -1644,6 +1647,7 @@ |
1645 | 1648 | * @deprecated since 1.19 |
1646 | 1649 | */ |
1647 | 1650 | public function revert() { |
| 1651 | + wfDeprecated( __METHOD__, '1.19' ); |
1648 | 1652 | Action::factory( 'revert', $this )->show(); |
1649 | 1653 | } |
1650 | 1654 | |
— | — | @@ -1652,6 +1656,7 @@ |
1653 | 1657 | * @deprecated since 1.19 |
1654 | 1658 | */ |
1655 | 1659 | public function rollback() { |
| 1660 | + wfDeprecated( __METHOD__, '1.19' ); |
1656 | 1661 | Action::factory( 'rollback', $this )->show(); |
1657 | 1662 | } |
1658 | 1663 | |
— | — | @@ -1661,6 +1666,7 @@ |
1662 | 1667 | * @deprecated since 1.18 |
1663 | 1668 | */ |
1664 | 1669 | public function watch() { |
| 1670 | + wfDeprecated( __METHOD__, '1.18' ); |
1665 | 1671 | Action::factory( 'watch', $this )->show(); |
1666 | 1672 | } |
1667 | 1673 | |
— | — | @@ -1674,6 +1680,7 @@ |
1675 | 1681 | */ |
1676 | 1682 | public function doWatch() { |
1677 | 1683 | global $wgUser; |
| 1684 | + wfDeprecated( __METHOD__, '1.18' ); |
1678 | 1685 | return WatchAction::doWatch( $this->getTitle(), $wgUser ); |
1679 | 1686 | } |
1680 | 1687 | |
— | — | @@ -1683,6 +1690,7 @@ |
1684 | 1691 | * @deprecated since 1.18 |
1685 | 1692 | */ |
1686 | 1693 | public function unwatch() { |
| 1694 | + wfDeprecated( __METHOD__, '1.18' ); |
1687 | 1695 | Action::factory( 'unwatch', $this )->show(); |
1688 | 1696 | } |
1689 | 1697 | |
— | — | @@ -1693,6 +1701,7 @@ |
1694 | 1702 | */ |
1695 | 1703 | public function doUnwatch() { |
1696 | 1704 | global $wgUser; |
| 1705 | + wfDeprecated( __METHOD__, '1.18' ); |
1697 | 1706 | return WatchAction::doUnwatch( $this->getTitle(), $wgUser ); |
1698 | 1707 | } |
1699 | 1708 | |
— | — | @@ -1706,7 +1715,7 @@ |
1707 | 1716 | * @param $extraQuery String: extra query params |
1708 | 1717 | */ |
1709 | 1718 | public function doRedirect( $noRedir = false, $sectionAnchor = '', $extraQuery = '' ) { |
1710 | | - wfDeprecated( __METHOD__ ); |
| 1719 | + wfDeprecated( __METHOD__, '1.18' ); |
1711 | 1720 | global $wgOut; |
1712 | 1721 | |
1713 | 1722 | if ( $noRedir ) { |
Index: trunk/phase3/includes/GlobalFunctions.php |
— | — | @@ -1153,6 +1153,7 @@ |
1154 | 1154 | * @return Language |
1155 | 1155 | */ |
1156 | 1156 | function wfUILang() { |
| 1157 | + wfDeprecated( __METHOD__, '1.18' ); |
1157 | 1158 | global $wgLang; |
1158 | 1159 | return $wgLang; |
1159 | 1160 | } |
— | — | @@ -1709,6 +1710,8 @@ |
1710 | 1711 | * @deprecated in 1.19; use Language::viewPrevNext() instead |
1711 | 1712 | */ |
1712 | 1713 | function wfViewPrevNext( $offset, $limit, $link, $query = '', $atend = false ) { |
| 1714 | + wfDeprecated( __METHOD__, '1.19' ); |
| 1715 | + |
1713 | 1716 | global $wgLang; |
1714 | 1717 | |
1715 | 1718 | $query = wfCgiToArray( $query ); |
— | — | @@ -3024,6 +3027,7 @@ |
3025 | 3028 | * @param $commit string |
3026 | 3029 | */ |
3027 | 3030 | function wfDoUpdates( $commit = '' ) { |
| 3031 | + wfDeprecated( __METHOD__, '1.19' ); |
3028 | 3032 | DeferredUpdates::doUpdates( $commit ); |
3029 | 3033 | } |
3030 | 3034 | |
— | — | @@ -3123,7 +3127,7 @@ |
3124 | 3128 | * @deprecated since 1.18, warnings in 1.18, removal in 1.20 |
3125 | 3129 | */ |
3126 | 3130 | function wfCreateObject( $name, $p ) { |
3127 | | - wfDeprecated( __FUNCTION__ ); |
| 3131 | + wfDeprecated( __FUNCTION__, '1.18' ); |
3128 | 3132 | return MWFunction::newObj( $name, $p ); |
3129 | 3133 | } |
3130 | 3134 | |
— | — | @@ -3356,6 +3360,7 @@ |
3357 | 3361 | * @deprecated since 1.19 |
3358 | 3362 | */ |
3359 | 3363 | function wfStreamFile( $fname, $headers = array() ) { |
| 3364 | + wfDeprecated( __FUNCTION__, '1.19' ); |
3360 | 3365 | StreamFile::stream( $fname, $headers ); |
3361 | 3366 | } |
3362 | 3367 | |
— | — | @@ -3426,7 +3431,7 @@ |
3427 | 3432 | * @codeCoverageIgnore |
3428 | 3433 | */ |
3429 | 3434 | function wfLoadExtensionMessages() { |
3430 | | - wfDeprecated( __FUNCTION__ ); |
| 3435 | + wfDeprecated( __FUNCTION__, '1.16' ); |
3431 | 3436 | } |
3432 | 3437 | |
3433 | 3438 | /** |
— | — | @@ -3544,7 +3549,7 @@ |
3545 | 3550 | * @deprecated since 1.18, warnings in 1.18, remove in 1.20 |
3546 | 3551 | */ |
3547 | 3552 | function wfOut( $s ) { |
3548 | | - wfDeprecated( __METHOD__ ); |
| 3553 | + wfDeprecated( __FUNCTION__, '1.18' ); |
3549 | 3554 | global $wgCommandLineMode; |
3550 | 3555 | if ( $wgCommandLineMode ) { |
3551 | 3556 | echo $s; |
Index: trunk/phase3/includes/parser/ParserOptions.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | * @deprecated since 1.18 Use Linker::* instead |
98 | 98 | */ |
99 | 99 | function getSkin( $title = null ) { |
100 | | - wfDeprecated( __METHOD__ ); |
| 100 | + wfDeprecated( __METHOD__, '1.18' ); |
101 | 101 | return new DummyLinker; |
102 | 102 | } |
103 | 103 | |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | * @deprecated since 1.18 Just pass the external class directly to something using Html::expandAttributes |
25 | 25 | */ |
26 | 26 | static function getExternalLinkAttributes( $class = 'external' ) { |
27 | | - wfDeprecated( __METHOD__ ); |
| 27 | + wfDeprecated( __METHOD__, '1.18' ); |
28 | 28 | return self::getLinkAttributesInternal( '', $class ); |
29 | 29 | } |
30 | 30 | |
— | — | @@ -359,7 +359,7 @@ |
360 | 360 | */ |
361 | 361 | static function makeSizeLinkObj( $size, $nt, $text = '', $query = '', $trail = '', $prefix = '' ) { |
362 | 362 | global $wgUser; |
363 | | - wfDeprecated( __METHOD__ ); |
| 363 | + wfDeprecated( __METHOD__, '1.17' ); |
364 | 364 | |
365 | 365 | $threshold = $wgUser->getStubThreshold(); |
366 | 366 | $colour = ( $size < $threshold ) ? 'stub' : ''; |
— | — | @@ -1873,6 +1873,8 @@ |
1874 | 1874 | * the end of the link. |
1875 | 1875 | */ |
1876 | 1876 | static function makeBrokenLink( $title, $text = '', $query = '', $trail = '' ) { |
| 1877 | + wfDeprecated( __METHOD__, '1.16' ); |
| 1878 | + |
1877 | 1879 | $nt = Title::newFromText( $title ); |
1878 | 1880 | if ( $nt instanceof Title ) { |
1879 | 1881 | return self::makeBrokenLinkObj( $nt, $text, $query, $trail ); |
— | — | @@ -1899,6 +1901,8 @@ |
1900 | 1902 | * @param $prefix String: optional prefix. As trail, only before instead of after. |
1901 | 1903 | */ |
1902 | 1904 | static function makeLinkObj( $nt, $text = '', $query = '', $trail = '', $prefix = '' ) { |
| 1905 | + wfDeprecated( __METHOD__, '1.16' ); |
| 1906 | + |
1903 | 1907 | wfProfileIn( __METHOD__ ); |
1904 | 1908 | $query = wfCgiToArray( $query ); |
1905 | 1909 | list( $inside, $trail ) = self::splitTrail( $trail ); |
— | — | @@ -1931,6 +1935,8 @@ |
1932 | 1936 | static function makeKnownLinkObj( |
1933 | 1937 | $title, $text = '', $query = '', $trail = '', $prefix = '' , $aprops = '', $style = '' |
1934 | 1938 | ) { |
| 1939 | + wfDeprecated( __METHOD__, '1.16' ); |
| 1940 | + |
1935 | 1941 | wfProfileIn( __METHOD__ ); |
1936 | 1942 | |
1937 | 1943 | if ( $text == '' ) { |
— | — | @@ -1964,6 +1970,8 @@ |
1965 | 1971 | * @param $prefix String: Optional prefix |
1966 | 1972 | */ |
1967 | 1973 | static function makeBrokenLinkObj( $title, $text = '', $query = '', $trail = '', $prefix = '' ) { |
| 1974 | + wfDeprecated( __METHOD__, '1.16' ); |
| 1975 | + |
1968 | 1976 | wfProfileIn( __METHOD__ ); |
1969 | 1977 | |
1970 | 1978 | list( $inside, $trail ) = self::splitTrail( $trail ); |
— | — | @@ -1993,6 +2001,8 @@ |
1994 | 2002 | * @param $prefix String: Optional prefix |
1995 | 2003 | */ |
1996 | 2004 | static function makeColouredLinkObj( $nt, $colour, $text = '', $query = '', $trail = '', $prefix = '' ) { |
| 2005 | + wfDeprecated( __METHOD__, '1.16' ); |
| 2006 | + |
1997 | 2007 | if ( $colour != '' ) { |
1998 | 2008 | $style = self::getInternalLinkAttributesObj( $nt, $text, $colour ); |
1999 | 2009 | } else { |
— | — | @@ -2023,9 +2033,13 @@ |
2024 | 2034 | |
2025 | 2035 | /** |
2026 | 2036 | * @deprecated since 1.14 |
| 2037 | + * TODO: remove?! |
| 2038 | + * |
2027 | 2039 | * Returns raw bits of HTML, use titleAttrib() |
2028 | 2040 | */ |
2029 | 2041 | public static function tooltip( $name, $options = null ) { |
| 2042 | + wfDeprecated( __METHOD__, '1.14' ); |
| 2043 | + |
2030 | 2044 | # @todo FIXME: If Sanitizer::expandAttributes() treated "false" as "output |
2031 | 2045 | # no attribute" instead of "output '' as value for attribute", this |
2032 | 2046 | # would be two lines. |
Index: trunk/phase3/includes/db/DatabaseMysql.php |
— | — | @@ -511,6 +511,7 @@ |
512 | 512 | * @return bool|int |
513 | 513 | */ |
514 | 514 | function getLagFromProcesslist() { |
| 515 | + wfDeprecated( __METHOD__, '1.19' ); |
515 | 516 | $res = $this->query( 'SHOW PROCESSLIST', __METHOD__ ); |
516 | 517 | if( !$res ) { |
517 | 518 | return false; |
Index: trunk/phase3/includes/db/Database.php |
— | — | @@ -631,7 +631,7 @@ |
632 | 632 | * @return DatabaseMysql |
633 | 633 | */ |
634 | 634 | static function newFromParams( $server, $user, $password, $dbName, $flags = 0 ) { |
635 | | - wfDeprecated( __METHOD__ ); |
| 635 | + wfDeprecated( __METHOD__, '1.17' ); |
636 | 636 | return new DatabaseMysql( $server, $user, $password, $dbName, $flags ); |
637 | 637 | } |
638 | 638 | |
— | — | @@ -641,7 +641,7 @@ |
642 | 642 | * @see Database::factory() |
643 | 643 | */ |
644 | 644 | public final static function newFromType( $dbType, $p = array() ) { |
645 | | - wfDeprecated( __METHOD__ ); |
| 645 | + wfDeprecated( __METHOD__, '1.18' ); |
646 | 646 | if ( isset( $p['tableprefix'] ) ) { |
647 | 647 | $p['tablePrefix'] = $p['tableprefix']; |
648 | 648 | } |
— | — | @@ -2204,7 +2204,7 @@ |
2205 | 2205 | * @return string |
2206 | 2206 | */ |
2207 | 2207 | function quote_ident( $s ) { |
2208 | | - wfDeprecated( __METHOD__ ); |
| 2208 | + wfDeprecated( __METHOD__, '1.18' ); |
2209 | 2209 | return $this->addIdentifierQuotes( $s ); |
2210 | 2210 | } |
2211 | 2211 | |
— | — | @@ -2219,7 +2219,7 @@ |
2220 | 2220 | * @return string |
2221 | 2221 | */ |
2222 | 2222 | public function escapeLike( $s ) { |
2223 | | - wfDeprecated( __METHOD__ ); |
| 2223 | + wfDeprecated( __METHOD__, '1.17' ); |
2224 | 2224 | return $this->escapeLikeInternal( $s ); |
2225 | 2225 | } |
2226 | 2226 | |
— | — | @@ -3056,6 +3056,7 @@ |
3057 | 3057 | * @deprecated since 1.19; use setSessionOptions() |
3058 | 3058 | */ |
3059 | 3059 | public function setTimeout( $timeout ) { |
| 3060 | + wfDeprecated( __METHOD__, '1.19' ); |
3060 | 3061 | $this->setSessionOptions( array( 'connTimeout' => $timeout ) ); |
3061 | 3062 | } |
3062 | 3063 | |
Index: trunk/phase3/includes/db/LoadBalancer.php |
— | — | @@ -858,6 +858,7 @@ |
859 | 859 | * @param $conn |
860 | 860 | */ |
861 | 861 | function closeConnecton( $conn ) { |
| 862 | + wfDeprecated( __METHOD__, '1.18' ); |
862 | 863 | $this->closeConnection( $conn ); |
863 | 864 | } |
864 | 865 | |
Index: trunk/phase3/includes/filerepo/FSRepo.php |
— | — | @@ -368,7 +368,7 @@ |
369 | 369 | * @return Status |
370 | 370 | */ |
371 | 371 | function append( $srcPath, $toAppendPath, $flags = 0 ) { |
372 | | - wfDeprecated(__METHOD__); |
| 372 | + wfDeprecated( __METHOD__, '1.19' ); |
373 | 373 | |
374 | 374 | $status = $this->newGood(); |
375 | 375 | |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -406,6 +406,8 @@ |
407 | 407 | * @deprecated in 1.19; use displayPermissionsError() instead |
408 | 408 | */ |
409 | 409 | function readOnlyPage( $source = null, $protected = false, $reasons = array(), $action = null ) { |
| 410 | + wfDeprecated( __METHOD__, '1.19' ); |
| 411 | + |
410 | 412 | global $wgRequest, $wgOut; |
411 | 413 | if ( $wgRequest->getBool( 'redlink' ) ) { |
412 | 414 | // The edit page was reached via a red link. |
— | — | @@ -2752,6 +2754,7 @@ |
2753 | 2755 | * @deprecated in 1.19; throw an exception directly instead |
2754 | 2756 | */ |
2755 | 2757 | function blockedPage() { |
| 2758 | + wfDeprecated( __METHOD__, '1.19' ); |
2756 | 2759 | global $wgUser; |
2757 | 2760 | |
2758 | 2761 | throw new UserBlockedError( $wgUser->mBlock ); |
— | — | @@ -2763,6 +2766,7 @@ |
2764 | 2767 | * @deprecated in 1.19; throw an exception directly instead |
2765 | 2768 | */ |
2766 | 2769 | function userNotLoggedInPage() { |
| 2770 | + wfDeprecated( __METHOD__, '1.19' ); |
2767 | 2771 | throw new PermissionsError( 'edit' ); |
2768 | 2772 | } |
2769 | 2773 | |
— | — | @@ -2773,6 +2777,7 @@ |
2774 | 2778 | * @deprecated in 1.19; throw an exception directly instead |
2775 | 2779 | */ |
2776 | 2780 | function noCreatePermission() { |
| 2781 | + wfDeprecated( __METHOD__, '1.19' ); |
2777 | 2782 | $permission = $this->mTitle->isTalkPage() ? 'createtalk' : 'createpage'; |
2778 | 2783 | throw new PermissionsError( $permission ); |
2779 | 2784 | } |
— | — | @@ -2800,6 +2805,8 @@ |
2801 | 2806 | * @deprecated since 1.17 Use method spamPageWithContent() instead |
2802 | 2807 | */ |
2803 | 2808 | static function spamPage( $match = false ) { |
| 2809 | + wfDeprecated( __METHOD__, '1.17' ); |
| 2810 | + |
2804 | 2811 | global $wgOut, $wgTitle; |
2805 | 2812 | |
2806 | 2813 | $wgOut->prepareErrorPage( wfMessage( 'spamprotectiontitle' ) ); |
Index: trunk/phase3/includes/HTMLForm.php |
— | — | @@ -186,7 +186,7 @@ |
187 | 187 | * done already. |
188 | 188 | * @deprecated since 1.18 load modules with ResourceLoader instead |
189 | 189 | */ |
190 | | - static function addJS() { } |
| 190 | + static function addJS() { wfDeprecated( __METHOD__, '1.18' ); } |
191 | 191 | |
192 | 192 | /** |
193 | 193 | * Initialise a new Object for the field |
Index: trunk/phase3/includes/context/RequestContext.php |
— | — | @@ -170,6 +170,7 @@ |
171 | 171 | * @param $l Mixed Language instance or language code |
172 | 172 | */ |
173 | 173 | public function setLang( $l ) { |
| 174 | + wfDeprecated( __METHOD__, '1.19' ); |
174 | 175 | $this->setLanguage( $l ); |
175 | 176 | } |
176 | 177 | |
— | — | @@ -196,6 +197,7 @@ |
197 | 198 | * @return Language |
198 | 199 | */ |
199 | 200 | public function getLang() { |
| 201 | + wfDeprecated( __METHOD__, '1.19' ); |
200 | 202 | return $this->getLanguage(); |
201 | 203 | } |
202 | 204 | |
Index: trunk/phase3/includes/context/ContextSource.php |
— | — | @@ -100,6 +100,7 @@ |
101 | 101 | * @return Language |
102 | 102 | */ |
103 | 103 | public function getLang() { |
| 104 | + wfDeprecated( __METHOD__, '1.19' ); |
104 | 105 | return $this->getLanguage(); |
105 | 106 | } |
106 | 107 | |
Index: trunk/phase3/includes/context/DerivativeContext.php |
— | — | @@ -162,6 +162,7 @@ |
163 | 163 | * @param $l Mixed Language instance or language code |
164 | 164 | */ |
165 | 165 | public function setLang( $l ) { |
| 166 | + wfDeprecated( __METHOD__, '1.19' ); |
166 | 167 | $this->setLanguage( $l ); |
167 | 168 | } |
168 | 169 | |
— | — | @@ -188,6 +189,7 @@ |
189 | 190 | * @return Language |
190 | 191 | */ |
191 | 192 | public function getLang() { |
| 193 | + wfDeprecated( __METHOD__, '1.19' ); |
192 | 194 | $this->getLanguage(); |
193 | 195 | } |
194 | 196 | |
Index: trunk/phase3/includes/CategoryViewer.php |
— | — | @@ -159,6 +159,7 @@ |
160 | 160 | * @deprecated since 1.17 kept for compatibility, please use addSubcategoryObject instead |
161 | 161 | */ |
162 | 162 | function addSubcategory( Title $title, $sortkey, $pageLength ) { |
| 163 | + wfDeprecated( __METHOD__, '1.17' ); |
163 | 164 | $this->addSubcategoryObject( Category::newFromTitle( $title ), $sortkey, $pageLength ); |
164 | 165 | } |
165 | 166 | |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | * @deprecated in 1.19 |
79 | 79 | */ |
80 | 80 | public function showHeader( $type ) { |
81 | | - wfDeprecated( __METHOD__ ); |
| 81 | + wfDeprecated( __METHOD__, '1.19' ); |
82 | 82 | // If only one log type is used, then show a special message... |
83 | 83 | $headerType = (count($type) == 1) ? $type[0] : ''; |
84 | 84 | if( LogPage::isLogType( $headerType ) ) { |
Index: trunk/phase3/includes/actions/RawAction.php |
— | — | @@ -210,6 +210,7 @@ |
211 | 211 | public $mOldId; |
212 | 212 | |
213 | 213 | function __construct( Page $page, $request = false ) { |
| 214 | + wfDeprecated( __CLASS__, '1.19' ); |
214 | 215 | parent::__construct( $page ); |
215 | 216 | |
216 | 217 | if ( $request !== false ) { |
Index: trunk/phase3/includes/api/ApiParse.php |
— | — | @@ -382,6 +382,8 @@ |
383 | 383 | * @return string |
384 | 384 | */ |
385 | 385 | private function languagesHtml( $languages ) { |
| 386 | + wfDeprecated( __METHOD__, '1.18' ); |
| 387 | + |
386 | 388 | global $wgContLang, $wgHideInterlanguageLinks; |
387 | 389 | |
388 | 390 | if ( $wgHideInterlanguageLinks || count( $languages ) == 0 ) { |
Index: trunk/phase3/includes/api/ApiMain.php |
— | — | @@ -286,6 +286,7 @@ |
287 | 287 | * $this->setCacheMode('private') |
288 | 288 | */ |
289 | 289 | public function setCachePrivate() { |
| 290 | + wfDeprecated( __METHOD__, '1.17' ); |
290 | 291 | $this->setCacheMode( 'private' ); |
291 | 292 | } |
292 | 293 | |
— | — | @@ -314,6 +315,7 @@ |
315 | 316 | * @deprecated since 1.17 Use setCacheMode( 'anon-public-user-private' ) |
316 | 317 | */ |
317 | 318 | public function setVaryCookie() { |
| 319 | + wfDeprecated( __METHOD__, '1.17' ); |
318 | 320 | $this->setCacheMode( 'anon-public-user-private' ); |
319 | 321 | } |
320 | 322 | |
Index: trunk/phase3/includes/api/ApiBase.php |
— | — | @@ -187,6 +187,7 @@ |
188 | 188 | * @return DerivativeContext |
189 | 189 | */ |
190 | 190 | public function createContext() { |
| 191 | + wfDeprecated( __METHOD__, '1.19' ); |
191 | 192 | return new DerivativeContext( $this->getContext() ); |
192 | 193 | } |
193 | 194 | |
— | — | @@ -673,6 +674,7 @@ |
674 | 675 | * @return array |
675 | 676 | */ |
676 | 677 | public static function getValidNamespaces() { |
| 678 | + wfDeprecated( __METHOD__, '1.17' ); |
677 | 679 | return MWNamespace::getValidNamespaces(); |
678 | 680 | } |
679 | 681 | |
Index: trunk/phase3/includes/media/Exif.php |
— | — | @@ -537,7 +537,7 @@ |
538 | 538 | * @deprecated since 1.18 |
539 | 539 | */ |
540 | 540 | function makeFormattedData( ) { |
541 | | - wfDeprecated( __METHOD__ ); |
| 541 | + wfDeprecated( __METHOD__, '1.18' ); |
542 | 542 | $this->mFormattedExifData = FormatMetadata::getFormattedData( |
543 | 543 | $this->mFilteredExifData ); |
544 | 544 | } |
— | — | @@ -569,7 +569,7 @@ |
570 | 570 | * @deprecated since 1.18 |
571 | 571 | */ |
572 | 572 | function getFormattedData() { |
573 | | - wfDeprecated( __METHOD__ ); |
| 573 | + wfDeprecated( __METHOD__, '1.18' ); |
574 | 574 | if (!$this->mFormattedExifData) { |
575 | 575 | $this->makeFormattedData(); |
576 | 576 | } |
Index: trunk/phase3/includes/ChangesList.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | * @return ChangesList|EnhancedChangesList|OldChangesList derivative |
69 | 69 | */ |
70 | 70 | public static function newFromUser( $unused ) { |
| 71 | + wfDeprecated( __METHOD__, '1.18' ); |
71 | 72 | return self::newFromContext( RequestContext::getMain() ); |
72 | 73 | } |
73 | 74 | |
Index: trunk/phase3/includes/Title.php |
— | — | @@ -973,6 +973,7 @@ |
974 | 974 | * @deprecated since 1.17 |
975 | 975 | */ |
976 | 976 | public function isValidCssJsSubpage() { |
| 977 | + wfDeprecated( __METHOD__, '1.17' ); |
977 | 978 | return $this->isCssJsSubpage(); |
978 | 979 | } |
979 | 980 | |
— | — | @@ -1525,6 +1526,7 @@ |
1526 | 1527 | * @todo fold these checks into userCan() |
1527 | 1528 | */ |
1528 | 1529 | public function userCanRead() { |
| 1530 | + wfDeprecated( __METHOD__, '1.19' ); |
1529 | 1531 | return $this->userCan( 'read' ); |
1530 | 1532 | } |
1531 | 1533 | |
— | — | @@ -2131,7 +2133,7 @@ |
2132 | 2134 | */ |
2133 | 2135 | public function userCanEditCssSubpage() { |
2134 | 2136 | global $wgUser; |
2135 | | - wfDeprecated( __METHOD__ ); |
| 2137 | + wfDeprecated( __METHOD__, '1.19' ); |
2136 | 2138 | return ( ( $wgUser->isAllowedAll( 'editusercssjs', 'editusercss' ) ) |
2137 | 2139 | || preg_match( '/^' . preg_quote( $wgUser->getName(), '/' ) . '\//', $this->mTextform ) ); |
2138 | 2140 | } |
— | — | @@ -2145,7 +2147,7 @@ |
2146 | 2148 | */ |
2147 | 2149 | public function userCanEditJsSubpage() { |
2148 | 2150 | global $wgUser; |
2149 | | - wfDeprecated( __METHOD__ ); |
| 2151 | + wfDeprecated( __METHOD__, '1.19' ); |
2150 | 2152 | return ( ( $wgUser->isAllowedAll( 'editusercssjs', 'edituserjs' ) ) |
2151 | 2153 | || preg_match( '/^' . preg_quote( $wgUser->getName(), '/' ) . '\//', $this->mTextform ) ); |
2152 | 2154 | } |
Index: trunk/phase3/includes/Block.php |
— | — | @@ -105,6 +105,7 @@ |
106 | 106 | * @deprecated since 1.18 |
107 | 107 | */ |
108 | 108 | public static function newFromDB( $address, $user = 0 ) { |
| 109 | + wfDeprecated( __METHOD__, '1.18' ); |
109 | 110 | return self::newFromTarget( User::whoIs( $user ), $address ); |
110 | 111 | } |
111 | 112 | |
— | — | @@ -159,6 +160,7 @@ |
160 | 161 | * @deprecated since 1.18 |
161 | 162 | */ |
162 | 163 | public function clear() { |
| 164 | + wfDeprecated( __METHOD__, '1.18' ); |
163 | 165 | # Noop |
164 | 166 | } |
165 | 167 | |
— | — | @@ -171,7 +173,7 @@ |
172 | 174 | * @deprecated since 1.18 |
173 | 175 | */ |
174 | 176 | public function load( $address = '', $user = 0 ) { |
175 | | - wfDeprecated( __METHOD__ ); |
| 177 | + wfDeprecated( __METHOD__, '1.18' ); |
176 | 178 | if( $user ){ |
177 | 179 | $username = User::whoIs( $user ); |
178 | 180 | $block = self::newFromTarget( $username, $address ); |
— | — | @@ -807,6 +809,7 @@ |
808 | 810 | * @param $x Bool |
809 | 811 | */ |
810 | 812 | public function forUpdate( $x = null ) { |
| 813 | + wfDeprecated( __METHOD__, '1.18' ); |
811 | 814 | # noop |
812 | 815 | } |
813 | 816 | |
— | — | @@ -895,6 +898,7 @@ |
896 | 899 | * @deprecated since 1.18; use $dbw->encodeExpiry() instead |
897 | 900 | */ |
898 | 901 | public static function encodeExpiry( $expiry, $db ) { |
| 902 | + wfDeprecated( __METHOD__, '1.18' ); |
899 | 903 | return $db->encodeExpiry( $expiry ); |
900 | 904 | } |
901 | 905 | |
— | — | @@ -907,6 +911,7 @@ |
908 | 912 | * @deprecated since 1.18; use $wgLang->formatExpiry() instead |
909 | 913 | */ |
910 | 914 | public static function decodeExpiry( $expiry, $timestampType = TS_MW ) { |
| 915 | + wfDeprecated( __METHOD__, '1.18' ); |
911 | 916 | global $wgContLang; |
912 | 917 | return $wgContLang->formatExpiry( $expiry, $timestampType ); |
913 | 918 | } |
— | — | @@ -931,6 +936,7 @@ |
932 | 937 | * @deprecated since 1.18, call IP::sanitizeRange() directly |
933 | 938 | */ |
934 | 939 | public static function normaliseRange( $range ) { |
| 940 | + wfDeprecated( __METHOD__, '1.18' ); |
935 | 941 | return IP::sanitizeRange( $range ); |
936 | 942 | } |
937 | 943 | |
— | — | @@ -950,6 +956,7 @@ |
951 | 957 | * @return String |
952 | 958 | */ |
953 | 959 | public static function infinity() { |
| 960 | + wfDeprecated( __METHOD__, '1.18' ); |
954 | 961 | return wfGetDB( DB_SLAVE )->getInfinity(); |
955 | 962 | } |
956 | 963 | |
— | — | @@ -961,6 +968,8 @@ |
962 | 969 | * @deprecated since 1.18; use $wgLang->formatExpiry() instead |
963 | 970 | */ |
964 | 971 | public static function formatExpiry( $encoded_expiry ) { |
| 972 | + wfDeprecated( __METHOD__, '1.18' ); |
| 973 | + |
965 | 974 | global $wgContLang; |
966 | 975 | static $msg = null; |
967 | 976 | |
— | — | @@ -994,7 +1003,7 @@ |
995 | 1004 | * @deprecated since 1.18 moved to SpecialBlock::parseExpiryInput() |
996 | 1005 | */ |
997 | 1006 | public static function parseExpiryInput( $expiry ) { |
998 | | - wfDeprecated( __METHOD__ ); |
| 1007 | + wfDeprecated( __METHOD__, '1.18' ); |
999 | 1008 | return SpecialBlock::parseExpiryInput( $expiry ); |
1000 | 1009 | } |
1001 | 1010 | |
Index: trunk/phase3/includes/Action.php |
— | — | @@ -159,6 +159,7 @@ |
160 | 160 | * @return Skin |
161 | 161 | */ |
162 | 162 | public final function getLang() { |
| 163 | + wfDeprecated( __METHOD__, '1.19' ); |
163 | 164 | return $this->getLanguage(); |
164 | 165 | } |
165 | 166 | |
Index: trunk/phase3/includes/ImageGallery.php |
— | — | @@ -131,7 +131,7 @@ |
132 | 132 | * @deprecated since 1.18 Not used anymore |
133 | 133 | */ |
134 | 134 | function useSkin( $skin ) { |
135 | | - wfDeprecated( __METHOD__ ); |
| 135 | + wfDeprecated( __METHOD__, '1.18' ); |
136 | 136 | /* no op */ |
137 | 137 | } |
138 | 138 | |