Index: trunk/extensions/FlaggedRevs/FlaggedRevsPage_body.php |
— | — | @@ -728,7 +728,7 @@ |
729 | 729 | $arr = array($allnamespaces => wfMsg('namespacesall')) + $arr; |
730 | 730 | } |
731 | 731 | |
732 | | - $s .= "\t" . Xml::element("option", array("value" => "all"), "all") . "\n"; |
| 732 | + $s .= "\t" . Xml::element("option", array("value" => ''), wfMsg('namespacesall')) . "\n"; |
733 | 733 | |
734 | 734 | foreach($arr as $index => $name) { |
735 | 735 | # Content only |
— | — | @@ -755,8 +755,8 @@ |
756 | 756 | */ |
757 | 757 | class UnreviewedPagesPage extends PageQueryPage { |
758 | 758 | |
759 | | - function __construct( $namespace=NULL, $showOutdated=NULL, $category=NULL ) { |
760 | | - $this->namespace = intval($namespace); |
| 759 | + function __construct( $namespace, $showOutdated=NULL, $category=NULL ) { |
| 760 | + $this->namespace = $namespace=='' ? null : intval($namespace); |
761 | 761 | $this->category = $category; |
762 | 762 | $this->showOutdated = $showOutdated; |
763 | 763 | } |
— | — | @@ -798,7 +798,6 @@ |
799 | 799 | $sql .= "LEFT JOIN $categorylinks ON (cl_from = page_id AND cl_to = '{$category}') "; |
800 | 800 | } |
801 | 801 | $sql .= "WHERE ($where) "; |
802 | | - |
803 | 802 | return $sql; |
804 | 803 | } |
805 | 804 | |