r70024 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70023‎ | r70024 | r70025 >
Date:18:33, 27 July 2010
Author:platonides
Status:ok
Tags:
Comment:
Use the canonical names for classes.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/ConfEditor.php (modified) (history)
  • /trunk/phase3/includes/QueryPage.php (modified) (history)
  • /trunk/phase3/includes/api/ApiEmailUser.php (modified) (history)
  • /trunk/phase3/includes/api/ApiPurge.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryWatchlist.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialCategories.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialListusers.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialProtectedtitles.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialUserrights.php (modified) (history)
  • /trunk/phase3/maintenance/fuzz-tester.php (modified) (history)
  • /trunk/phase3/maintenance/initEditCount.php (modified) (history)
  • /trunk/phase3/maintenance/tests/HttpTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/fuzz-tester.php
@@ -1612,10 +1612,10 @@
16131613 $this->params = array (
16141614 "action" => "protect",
16151615 'wpEditToken' => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
1616 - "mwProtect-level-edit" => wikiFuzz::chooseInput( array( '', 'autoconfirmed', 'sysop', wikifuzz::makeFuzz( 2 ) ) ),
1617 - "mwProtect-level-move" => wikiFuzz::chooseInput( array( '', 'autoconfirmed', 'sysop', wikifuzz::makeFuzz( 2 ) ) ),
 1616+ "mwProtect-level-edit" => wikiFuzz::chooseInput( array( '', 'autoconfirmed', 'sysop', wikiFuzz::makeFuzz( 2 ) ) ),
 1617+ "mwProtect-level-move" => wikiFuzz::chooseInput( array( '', 'autoconfirmed', 'sysop', wikiFuzz::makeFuzz( 2 ) ) ),
16181618 "mwProtectUnchained" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
1619 - 'mwProtect-reason' => wikiFuzz::chooseInput( array( "because it was there", wikifuzz::makeFuzz( 2 ) ) )
 1619+ 'mwProtect-reason' => wikiFuzz::chooseInput( array( "because it was there", wikiFuzz::makeFuzz( 2 ) ) )
16201620 );
16211621
16221622
@@ -1644,10 +1644,10 @@
16451645 // something like an IP address, sometimes invalid:
16461646 ( wikiFuzz::randnum( 300, -20 ) . "." . wikiFuzz::randnum( 300, -20 ) . "."
16471647 . wikiFuzz::randnum( 300, -20 ) . "." . wikiFuzz::randnum( 300, -20 ) ) ) ),
1648 - "wpBlockOther" => wikiFuzz::chooseInput( array( '', 'Nickj2', wikifuzz::makeFuzz( 2 ) ) ),
 1648+ "wpBlockOther" => wikiFuzz::chooseInput( array( '', 'Nickj2', wikiFuzz::makeFuzz( 2 ) ) ),
16491649 "wpBlockExpiry" => wikiFuzz::chooseInput( array( "other", "2 hours", "1 day", "3 days", "1 week", "2 weeks",
16501650 "1 month", "3 months", "6 months", "1 year", "infinite", wikiFuzz::makeFuzz( 2 ) ) ),
1651 - "wpBlockReason" => wikiFuzz::chooseInput( array( "because it was there", wikifuzz::makeFuzz( 2 ) ) ),
 1651+ "wpBlockReason" => wikiFuzz::chooseInput( array( "because it was there", wikiFuzz::makeFuzz( 2 ) ) ),
16521652 "wpAnonOnly" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
16531653 "wpCreateAccount" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
16541654 "wpBlock" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) )
@@ -1673,9 +1673,9 @@
16741674 $this->pagePath = "index.php?title=Image:Small-email.png";
16751675
16761676 $this->params = array (
1677 - "image" => wikiFuzz::chooseInput( array( "Small-email.png", wikifuzz::makeFuzz( 2 ) ) ),
1678 - "wpReason" => wikifuzz::makeFuzz( 2 ),
1679 - "oldimage" => wikiFuzz::chooseInput( array( "Small-email.png", wikifuzz::makeFuzz( 2 ) ) ),
 1677+ "image" => wikiFuzz::chooseInput( array( "Small-email.png", wikiFuzz::makeFuzz( 2 ) ) ),
 1678+ "wpReason" => wikiFuzz::makeFuzz( 2 ),
 1679+ "oldimage" => wikiFuzz::chooseInput( array( "Small-email.png", wikiFuzz::makeFuzz( 2 ) ) ),
16801680 "wpEditToken" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
16811681 );
16821682
@@ -1718,9 +1718,9 @@
17191719 $this->pagePath = "index.php?title=Special:Revisiondelete";
17201720
17211721 $this->params = array (
1722 - "target" => wikiFuzz::chooseInput( array( "Main Page", wikifuzz::makeFuzz( 2 ) ) ),
1723 - "oldid" => wikifuzz::makeFuzz( 2 ),
1724 - "oldid[]" => wikifuzz::makeFuzz( 2 ),
 1722+ "target" => wikiFuzz::chooseInput( array( "Main Page", wikiFuzz::makeFuzz( 2 ) ) ),
 1723+ "oldid" => wikiFuzz::makeFuzz( 2 ),
 1724+ "oldid[]" => wikiFuzz::makeFuzz( 2 ),
17251725 "wpReason" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
17261726 "revdelete-hide-text" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
17271727 "revdelete-hide-comment" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
@@ -1750,8 +1750,8 @@
17511751
17521752 $this->params = array (
17531753 "action" => "submit",
1754 - "source" => wikiFuzz::chooseInput( array( "upload", "interwiki", wikifuzz::makeFuzz( 2 ) ) ),
1755 - "MAX_FILE_SIZE" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikifuzz::makeFuzz( 2 ) ) ),
 1754+ "source" => wikiFuzz::chooseInput( array( "upload", "interwiki", wikiFuzz::makeFuzz( 2 ) ) ),
 1755+ "MAX_FILE_SIZE" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
17561756 "xmlimport" => wikiFuzz::chooseInput( array( "/var/www/hosts/mediawiki/wiki/AdminSettings.php", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
17571757 "namespace" => wikiFuzz::chooseInput( array( wikiFuzz::randnum( 30, -6 ), wikiFuzz::makeFuzz( 2 ) ) ),
17581758 "interwiki" => wikiFuzz::makeFuzz( 2 ),
@@ -1781,9 +1781,9 @@
17821782 $this->pagePath = "thumb.php";
17831783
17841784 $this->params = array (
1785 - "f" => wikiFuzz::chooseInput( array( "..", "\\", "small-email.png", wikifuzz::makeFuzz( 2 ) ) ),
1786 - "w" => wikiFuzz::chooseInput( array( "80", wikiFuzz::randnum( 6000, -200 ), wikifuzz::makeFuzz( 2 ) ) ),
1787 - "r" => wikiFuzz::chooseInput( array( "0", wikifuzz::makeFuzz( 2 ) ) ),
 1785+ "f" => wikiFuzz::chooseInput( array( "..", "\\", "small-email.png", wikiFuzz::makeFuzz( 2 ) ) ),
 1786+ "w" => wikiFuzz::chooseInput( array( "80", wikiFuzz::randnum( 6000, -200 ), wikiFuzz::makeFuzz( 2 ) ) ),
 1787+ "r" => wikiFuzz::chooseInput( array( "0", wikiFuzz::makeFuzz( 2 ) ) ),
17881788 );
17891789
17901790 // sometimes we don't want to specify certain parameters.
@@ -1802,11 +1802,11 @@
18031803 $this->pagePath = "trackback.php";
18041804
18051805 $this->params = array (
1806 - "url" => wikifuzz::makeFuzz( 2 ),
1807 - "blog_name" => wikiFuzz::chooseInput( array( "80", wikiFuzz::randnum( 6000, -200 ), wikifuzz::makeFuzz( 2 ) ) ),
1808 - "article" => wikiFuzz::chooseInput( array( "Main Page", wikifuzz::makeFuzz( 2 ) ) ),
1809 - "title" => wikiFuzz::chooseInput( array( "Main Page", wikifuzz::makeFuzz( 2 ) ) ),
1810 - "excerpt" => wikifuzz::makeFuzz( 2 ),
 1806+ "url" => wikiFuzz::makeFuzz( 2 ),
 1807+ "blog_name" => wikiFuzz::chooseInput( array( "80", wikiFuzz::randnum( 6000, -200 ), wikiFuzz::makeFuzz( 2 ) ) ),
 1808+ "article" => wikiFuzz::chooseInput( array( "Main Page", wikiFuzz::makeFuzz( 2 ) ) ),
 1809+ "title" => wikiFuzz::chooseInput( array( "Main Page", wikiFuzz::makeFuzz( 2 ) ) ),
 1810+ "excerpt" => wikiFuzz::makeFuzz( 2 ),
18111811 );
18121812
18131813 // sometimes we don't want to specify certain parameters.
@@ -1827,9 +1827,9 @@
18281828 $this->pagePath = "profileinfo.php";
18291829
18301830 $this->params = array (
1831 - "expand" => wikifuzz::makeFuzz( 2 ),
1832 - "sort" => wikiFuzz::chooseInput( array( "time", "count", "name", wikifuzz::makeFuzz( 2 ) ) ),
1833 - "filter" => wikiFuzz::chooseInput( array( "Main Page", wikifuzz::makeFuzz( 2 ) ) ),
 1831+ "expand" => wikiFuzz::makeFuzz( 2 ),
 1832+ "sort" => wikiFuzz::chooseInput( array( "time", "count", "name", wikiFuzz::makeFuzz( 2 ) ) ),
 1833+ "filter" => wikiFuzz::chooseInput( array( "Main Page", wikiFuzz::makeFuzz( 2 ) ) ),
18341834 );
18351835
18361836 // sometimes we don't want to specify certain parameters.
@@ -1847,7 +1847,7 @@
18481848 $this->pagePath = "index.php?title=Special:Cite";
18491849
18501850 $this->params = array (
1851 - "page" => wikiFuzz::chooseInput( array( "\" onmouseover=\"alert(1);\"", "Main Page", wikifuzz::makeFuzz( 2 ) ) ),
 1851+ "page" => wikiFuzz::chooseInput( array( "\" onmouseover=\"alert(1);\"", "Main Page", wikiFuzz::makeFuzz( 2 ) ) ),
18521852 "id" => wikiFuzz::chooseInput( array( "-1", "0", "------'-------0", "+1", "-9823412312312412435", wikiFuzz::makeFuzz( 2 ) ) ),
18531853 );
18541854
@@ -1866,7 +1866,7 @@
18671867 $this->pagePath = "index.php?title=Special:Filepath";
18681868
18691869 $this->params = array (
1870 - "file" => wikiFuzz::chooseInput( array( "Small-email.png", "Small-email.png" . wikifuzz::makeFuzz( 1 ), wikiFuzz::makeFuzz( 2 ) ) ),
 1870+ "file" => wikiFuzz::chooseInput( array( "Small-email.png", "Small-email.png" . wikiFuzz::makeFuzz( 1 ), wikiFuzz::makeFuzz( 2 ) ) ),
18711871 );
18721872 }
18731873 }
@@ -1880,9 +1880,9 @@
18811881 $this->pagePath = "index.php?title=Special:Makebot";
18821882
18831883 $this->params = array (
1884 - "username" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikifuzz::makeFuzz( 1 ) ) ),
1885 - "dosearch" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikifuzz::makeFuzz( 2 ) ) ),
1886 - "grant" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikifuzz::makeFuzz( 2 ) ) ),
 1884+ "username" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikiFuzz::makeFuzz( 1 ) ) ),
 1885+ "dosearch" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
 1886+ "grant" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
18871887 "comment" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
18881888 "token" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
18891889 );
@@ -1903,9 +1903,9 @@
19041904 $this->pagePath = "index.php?title=Special:Makesysop";
19051905
19061906 $this->params = array (
1907 - "wpMakesysopUser" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikifuzz::makeFuzz( 1 ) ) ),
1908 - "action" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikifuzz::makeFuzz( 2 ) ) ),
1909 - "wpMakesysopSubmit" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikifuzz::makeFuzz( 2 ) ) ),
 1907+ "wpMakesysopUser" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikiFuzz::makeFuzz( 1 ) ) ),
 1908+ "action" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
 1909+ "wpMakesysopSubmit" => wikiFuzz::chooseInput( array( "0", "1", "++--34234", wikiFuzz::makeFuzz( 2 ) ) ),
19101910 "wpEditToken" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
19111911 "wpSetBureaucrat" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
19121912 );
@@ -1926,8 +1926,8 @@
19271927 $this->pagePath = "index.php?title=Special:Renameuser";
19281928
19291929 $this->params = array (
1930 - "oldusername" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikifuzz::makeFuzz( 1 ) ) ),
1931 - "newusername" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikifuzz::makeFuzz( 1 ) ) ),
 1930+ "oldusername" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikiFuzz::makeFuzz( 1 ) ) ),
 1931+ "newusername" => wikiFuzz::chooseInput( array( "Nickj2", "192.168.0.2", wikiFuzz::makeFuzz( 1 ) ) ),
19321932 "token" => wikiFuzz::chooseInput( array( "20398702394", "", wikiFuzz::makeFuzz( 2 ) ) ),
19331933 );
19341934 }
@@ -1942,7 +1942,7 @@
19431943 $this->pagePath = "index.php?title=Special%3ALinksearch";
19441944
19451945 $this->params = array (
1946 - "target" => wikifuzz::makeFuzz( 2 ),
 1946+ "target" => wikiFuzz::makeFuzz( 2 ),
19471947 );
19481948
19491949 // sometimes we don't want to specify certain parameters.
@@ -1959,11 +1959,11 @@
19601960 $this->pagePath = "index.php?title=Special:CategoryTree";
19611961
19621962 $this->params = array (
1963 - "target" => wikifuzz::makeFuzz( 2 ),
1964 - "from" => wikifuzz::makeFuzz( 2 ),
1965 - "until" => wikifuzz::makeFuzz( 2 ),
1966 - "showas" => wikifuzz::makeFuzz( 2 ),
1967 - "mode" => wikiFuzz::chooseInput( array( "pages", "categories", "all", wikifuzz::makeFuzz( 2 ) ) ),
 1963+ "target" => wikiFuzz::makeFuzz( 2 ),
 1964+ "from" => wikiFuzz::makeFuzz( 2 ),
 1965+ "until" => wikiFuzz::makeFuzz( 2 ),
 1966+ "showas" => wikiFuzz::makeFuzz( 2 ),
 1967+ "mode" => wikiFuzz::chooseInput( array( "pages", "categories", "all", wikiFuzz::makeFuzz( 2 ) ) ),
19681968 );
19691969
19701970 // sometimes we do want to specify certain parameters.
@@ -2008,7 +2008,7 @@
20092009 }
20102010
20112011 // and then we append the fuzz input.
2012 - $this->params = array ( $format => $value . wikifuzz::makeFuzz( 2 ) );
 2012+ $this->params = array ( $format => $value . wikiFuzz::makeFuzz( 2 ) );
20132013 }
20142014 }
20152015
@@ -2026,8 +2026,8 @@
20272027
20282028 // API login mode.
20292029 private static function loginMode() {
2030 - $arr = array ( "lgname" => wikifuzz::makeFuzz( 2 ),
2031 - "lgpassword" => wikifuzz::makeFuzz( 2 ),
 2030+ $arr = array ( "lgname" => wikiFuzz::makeFuzz( 2 ),
 2031+ "lgpassword" => wikiFuzz::makeFuzz( 2 ),
20322032 );
20332033 // sometimes we want to specify the extra "lgdomain" parameter.
20342034 if ( wikiFuzz::randnum( 3 ) == 0 ) {
@@ -2039,18 +2039,18 @@
20402040
20412041 // API OpenSearch mode.
20422042 private static function opensearchMode() {
2043 - return array ( "search" => wikifuzz::makeFuzz( 2 ) );
 2043+ return array ( "search" => wikiFuzz::makeFuzz( 2 ) );
20442044 }
20452045
20462046 // API watchlist feed mode.
20472047 private static function feedwatchlistMode() {
2048 - // FIXME: add "wikifuzz::makeFuzz(2)" as possible value below?
 2048+ // FIXME: add "wikiFuzz::makeFuzz(2)" as possible value below?
20492049 return array ( "feedformat" => wikiFuzz::chooseInput( array( "rss", "atom" ) ) );
20502050 }
20512051
20522052 // API query mode.
20532053 private static function queryMode() {
2054 - // FIXME: add "wikifuzz::makeFuzz(2)" as possible params for the elements below?
 2054+ // FIXME: add "wikiFuzz::makeFuzz(2)" as possible params for the elements below?
20552055 // Suspect this will stuff up the tests more, but need to check.
20562056 $params = array (
20572057 // FIXME: More titles.
@@ -2103,16 +2103,16 @@
21042104 case 'start' :
21052105 case 'end' :
21062106 case 'limit' : return wikiFuzz::chooseInput( array( "0", "-1", "---'----------0", "+1", "8134", "320742734234235", "20060230121212", wikiFuzz::randnum( 9000, -100 ), wikiFuzz::makeFuzz( 2 ) ) );
2107 - case 'dir' : return wikiFuzz::chooseInput( array( "newer", "older", wikifuzz::makeFuzz( 2 ) ) );
2108 - case 'user' : return wikiFuzz::chooseInput( array( USER_ON_WIKI, wikifuzz::makeFuzz( 2 ) ) );
2109 - case 'namespace' : return wikiFuzz::chooseInput( array( -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 200000, wikifuzz::makeFuzz( 2 ) ) );
2110 - case 'filterredir': return wikiFuzz::chooseInput( array( "all", "redirects", "nonredirectsallpages", wikifuzz::makeFuzz( 2 ) ) );
 2107+ case 'dir' : return wikiFuzz::chooseInput( array( "newer", "older", wikiFuzz::makeFuzz( 2 ) ) );
 2108+ case 'user' : return wikiFuzz::chooseInput( array( USER_ON_WIKI, wikiFuzz::makeFuzz( 2 ) ) );
 2109+ case 'namespace' : return wikiFuzz::chooseInput( array( -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 200000, wikiFuzz::makeFuzz( 2 ) ) );
 2110+ case 'filterredir': return wikiFuzz::chooseInput( array( "all", "redirects", "nonredirectsallpages", wikiFuzz::makeFuzz( 2 ) ) );
21112111 case 'allrev' : return wikiFuzz::chooseInput( array( "1", 0, "", wikiFuzz::makeFuzz( 2 ) ) );
2112 - case 'prop' : return wikiFuzz::chooseInput( array( "user", "comment", "timestamp", "patrol", "flags", "user|user|comment|flags", wikifuzz::makeFuzz( 2 ) ) );
2113 - case 'type' : return wikiFuzz::chooseInput( array( "block", "protect", "rights", "delete", "upload", "move", "import", "renameuser", "newusers", "makebot", wikifuzz::makeFuzz( 2 ) ) );
2114 - case 'hide' : return wikiFuzz::chooseInput( array( "minor", "bots", "anons", "liu", "liu|bots|", wikifuzz::makeFuzz( 2 ) ) );
2115 - case 'show' : return wikiFuzz::chooseInput( array( 'minor', '!minor', 'bot', '!bot', 'anon', '!anon', wikifuzz::makeFuzz( 2 ) ) );
2116 - default : return wikifuzz::makeFuzz( 2 );
 2112+ case 'prop' : return wikiFuzz::chooseInput( array( "user", "comment", "timestamp", "patrol", "flags", "user|user|comment|flags", wikiFuzz::makeFuzz( 2 ) ) );
 2113+ case 'type' : return wikiFuzz::chooseInput( array( "block", "protect", "rights", "delete", "upload", "move", "import", "renameuser", "newusers", "makebot", wikiFuzz::makeFuzz( 2 ) ) );
 2114+ case 'hide' : return wikiFuzz::chooseInput( array( "minor", "bots", "anons", "liu", "liu|bots|", wikiFuzz::makeFuzz( 2 ) ) );
 2115+ case 'show' : return wikiFuzz::chooseInput( array( 'minor', '!minor', 'bot', '!bot', 'anon', '!anon', wikiFuzz::makeFuzz( 2 ) ) );
 2116+ default : return wikiFuzz::makeFuzz( 2 );
21172117 }
21182118 }
21192119
@@ -2125,7 +2125,7 @@
21262126 "opensearch",
21272127 "feedwatchlist",
21282128 "query" );
2129 - $action = wikiFuzz::chooseInput( array_merge ( $modes, array( wikifuzz::makeFuzz( 2 ) ) ) );
 2129+ $action = wikiFuzz::chooseInput( array_merge ( $modes, array( wikiFuzz::makeFuzz( 2 ) ) ) );
21302130
21312131 switch ( $action ) {
21322132 case "login" : $this->params = self::loginMode();
@@ -2156,7 +2156,7 @@
21572157 $this->params["format"] = wikiFuzz::chooseInput( array( "json", "jsonfm", "php", "phpfm",
21582158 "wddx", "wddxfm", "xml", "xmlfm",
21592159 "yaml", "yamlfm", "raw", "rawfm",
2160 - wikifuzz::makeFuzz( 2 ) ) );
 2160+ wikiFuzz::makeFuzz( 2 ) ) );
21612161
21622162 // Page does not produce HTML (sometimes).
21632163 $this->tidyValidate = false;
@@ -2173,7 +2173,7 @@
21742174 return "<source lang=\"" . $this->getLang() . "\" "
21752175 . ( wikiFuzz::randnum( 2 ) == 0 ? "line " : "" )
21762176 . ( wikiFuzz::randnum( 2 ) == 0 ? "strict " : "" )
2177 - . "start=" . wikiFuzz::chooseInput( array( wikiFuzz::randnum( -6000, 6000 ), wikifuzz::makeFuzz( 2 ) ) )
 2177+ . "start=" . wikiFuzz::chooseInput( array( wikiFuzz::randnum( -6000, 6000 ), wikiFuzz::makeFuzz( 2 ) ) )
21782178 . ">"
21792179 . wikiFuzz::makeFuzz( 2 )
21802180 . "</source>";
@@ -2184,7 +2184,7 @@
21852185 "cfdg", "cfm", "cpp", "cpp-qt", "csharp", "css", "d", "delphi", "diff", "div", "dos", "eiffel", "fortran", "freebasic", "gml", "groovy", "html4strict", "idl",
21862186 "ini", "inno", "io", "java", "java5", "javascript", "latex", "lisp", "lua", "matlab", "mirc", "mpasm", "mysql", "nsis", "objc", "ocaml", "ocaml-brief", "oobas",
21872187 "oracle8", "pascal", "perl", "php", "php-brief", "plsql", "python", "qbasic", "rails", "reg", "robots", "ruby", "sas", "scheme", "sdlbasic", "smalltalk", "smarty",
2188 - "sql", "tcl", "text", "thinbasic", "tsql", "vb", "vbnet", "vhdl", "visualfoxpro", "winbatch", "xml", "xpp", "z80", wikifuzz::makeFuzz( 1 ) ) );
 2188+ "sql", "tcl", "text", "thinbasic", "tsql", "vb", "vbnet", "vhdl", "visualfoxpro", "winbatch", "xml", "xpp", "z80", wikiFuzz::makeFuzz( 1 ) ) );
21892189 }
21902190
21912191 function __construct() {
Index: trunk/phase3/maintenance/tests/HttpTest.php
@@ -104,13 +104,13 @@
105105
106106 $timeout = 1;
107107 $start_time = time();
108 - $r = HTTP::get( "http://www.example.com:1/", $timeout );
 108+ $r = Http::get( "http://www.example.com:1/", $timeout );
109109 $end_time = time();
110110 $this->assertLessThan( $timeout + 2, $end_time - $start_time,
111111 "Request took less than {$timeout}s via " . Http::$httpEngine );
112112 $this->assertEquals( $r, false, "false -- what we get on error from Http::get()" );
113113
114 - $r = HTTP::get( "http://www.example.com/this-file-does-not-exist", $timeout );
 114+ $r = Http::get( "http://www.example.com/this-file-does-not-exist", $timeout );
115115 $this->assertFalse( $r, "False on 404s" );
116116
117117
Index: trunk/phase3/maintenance/initEditCount.php
@@ -44,7 +44,7 @@
4545
4646 // Autodetect mode...
4747 $backgroundMode = count( $wgDBservers ) > 1 ||
48 - ( $dbw instanceof DatabaseMySql && version_compare( $dbver, '4.1' ) < 0 );
 48+ ( $dbw instanceof DatabaseMysql && version_compare( $dbver, '4.1' ) < 0 );
4949
5050 if ( $this->hasOption( 'background' ) ) {
5151 $backgroundMode = true;
Index: trunk/phase3/includes/Article.php
@@ -3409,7 +3409,7 @@
34103410 if ( $s === false ) {
34113411 # No one else ever edited this page
34123412 return array( array( 'cantrollback' ) );
3413 - } else if ( $s->rev_deleted & REVISION::DELETED_TEXT || $s->rev_deleted & REVISION::DELETED_USER ) {
 3413+ } else if ( $s->rev_deleted & Revision::DELETED_TEXT || $s->rev_deleted & Revision::DELETED_USER ) {
34143414 # Only admins can see this text
34153415 return array( array( 'notvisiblerev' ) );
34163416 }
Index: trunk/phase3/includes/api/ApiPurge.php
@@ -65,7 +65,7 @@
6666 $result[] = $r;
6767 continue;
6868 }
69 - $article = Mediawiki::articleFromTitle( $title );
 69+ $article = MediaWiki::articleFromTitle( $title );
7070 $article->doPurge(); // Directly purge and skip the UI part of purge().
7171 $r['purged'] = '';
7272 $result[] = $r;
Index: trunk/phase3/includes/api/ApiEmailUser.php
@@ -50,13 +50,13 @@
5151 }
5252
5353 // Validate target
54 - $targetUser = SpecialEmailuser::getTarget( $params['target'] );
 54+ $targetUser = SpecialEmailUser::getTarget( $params['target'] );
5555 if ( !( $targetUser instanceof User ) ) {
5656 $this->dieUsageMsg( array( $targetUser ) );
5757 }
5858
5959 // Check permissions and errors
60 - $error = SpecialEmailuser::getPermissionsError( $wgUser, $params['token'] );
 60+ $error = SpecialEmailUser::getPermissionsError( $wgUser, $params['token'] );
6161 if ( $error ) {
6262 $this->dieUsageMsg( array( $error ) );
6363 }
@@ -67,7 +67,7 @@
6868 'Subject' => $params['subject'],
6969 'CCMe' => $params['ccme'],
7070 );
71 - $retval = SpecialEmailuser::submit( $data );
 71+ $retval = SpecialEmailUser::submit( $data );
7272 if ( $retval === true ) {
7373 $result = array( 'result' => 'Success' );
7474 } else {
Index: trunk/phase3/includes/api/ApiQueryWatchlist.php
@@ -311,9 +311,9 @@
312312 ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
313313 ),
314314 'prop' => array(
315 - APIBase::PARAM_ISMULTI => true,
316 - APIBase::PARAM_DFLT => 'ids|title|flags',
317 - APIBase::PARAM_TYPE => array(
 315+ ApiBase::PARAM_ISMULTI => true,
 316+ ApiBase::PARAM_DFLT => 'ids|title|flags',
 317+ ApiBase::PARAM_TYPE => array(
318318 'ids',
319319 'title',
320320 'flags',
Index: trunk/phase3/includes/ConfEditor.php
@@ -427,7 +427,7 @@
428428 */
429429 function findValueRegion( $pathName ) {
430430 if ( !isset( $this->pathInfo[$pathName] ) ) {
431 - throw new MWEXception( "Can't find path \"$pathName\"" );
 431+ throw new MWException( "Can't find path \"$pathName\"" );
432432 }
433433 $path = $this->pathInfo[$pathName];
434434 if ( $path['valueStartByte'] === false || $path['valueEndByte'] === false ) {
Index: trunk/phase3/includes/specials/SpecialUserrights.php
@@ -537,7 +537,7 @@
538538 foreach( $columns as $name => $column ) {
539539 if( $column === array() )
540540 continue;
541 - $ret .= xml::element( 'th', null, wfMsg( 'userrights-' . $name . '-col' ) );
 541+ $ret .= Xml::element( 'th', null, wfMsg( 'userrights-' . $name . '-col' ) );
542542 }
543543 $ret.= "</tr>\n<tr>\n";
544544 foreach( $columns as $column ) {
Index: trunk/phase3/includes/specials/SpecialCategories.php
@@ -33,13 +33,13 @@
3434 $cap = new CategoryPager( $from );
3535 $cap->doQuery();
3636 $wgOut->addHTML(
37 - XML::openElement( 'div', array('class' => 'mw-spcontent') ) .
 37+ Xml::openElement( 'div', array('class' => 'mw-spcontent') ) .
3838 wfMsgExt( 'categoriespagetext', array( 'parse' ), $cap->getNumRows() ) .
3939 $cap->getStartForm( $from ) .
4040 $cap->getNavigationBar() .
4141 '<ul>' . $cap->getBody() . '</ul>' .
4242 $cap->getNavigationBar() .
43 - XML::closeElement( 'div' )
 43+ Xml::closeElement( 'div' )
4444 );
4545 }
4646
Index: trunk/phase3/includes/specials/SpecialProtectedtitles.php
@@ -177,7 +177,7 @@
178178 * @todo document
179179 * @ingroup Pager
180180 */
181 -class ProtectedtitlesPager extends AlphabeticPager {
 181+class ProtectedTitlesPager extends AlphabeticPager {
182182 public $mForm, $mConds;
183183
184184 function __construct( $form, $conds = array(), $type, $level, $namespace, $sizetype='', $size=0 ) {
Index: trunk/phase3/includes/specials/SpecialListusers.php
@@ -276,7 +276,7 @@
277277
278278 # getBody() first to check, if empty
279279 $usersbody = $up->getBody();
280 - $s = XML::openElement( 'div', array('class' => 'mw-spcontent') );
 280+ $s = Xml::openElement( 'div', array('class' => 'mw-spcontent') );
281281 $s .= $up->getPageHeader();
282282 if( $usersbody ) {
283283 $s .= $up->getNavigationBar();
@@ -285,6 +285,6 @@
286286 } else {
287287 $s .= '<p>' . wfMsgHTML('listusers-noresult') . '</p>';
288288 };
289 - $s .= XML::closeElement( 'div' );
 289+ $s .= Xml::closeElement( 'div' );
290290 $wgOut->addHTML( $s );
291291 }
Index: trunk/phase3/includes/QueryPage.php
@@ -349,7 +349,7 @@
350350
351351 $this->preprocessResults( $dbr, $res );
352352
353 - $wgOut->addHTML( XML::openElement( 'div', array('class' => 'mw-spcontent') ) );
 353+ $wgOut->addHTML( Xml::openElement( 'div', array('class' => 'mw-spcontent') ) );
354354
355355 # Top header and navigation
356356 if( $shownavigation ) {
@@ -364,7 +364,7 @@
365365 # No results to show, so don't bother with "showing X of Y" etc.
366366 # -- just let the user know and give up now
367367 $wgOut->addHTML( '<p>' . wfMsgHtml( 'specialpage-empty' ) . '</p>' );
368 - $wgOut->addHTML( XML::closeElement( 'div' ) );
 368+ $wgOut->addHTML( Xml::closeElement( 'div' ) );
369369 return;
370370 }
371371 }
@@ -384,7 +384,7 @@
385385 $wgOut->addHTML( '<p>' . $paging . '</p>' );
386386 }
387387
388 - $wgOut->addHTML( XML::closeElement( 'div' ) );
 388+ $wgOut->addHTML( Xml::closeElement( 'div' ) );
389389
390390 return $num;
391391 }

Status & tagging log