Index: trunk/phase3/includes/api/ApiQueryPageProps.php |
— | — | @@ -43,8 +43,6 @@ |
44 | 44 | } |
45 | 45 | |
46 | 46 | public function execute() { |
47 | | - $this->params = $this->extractRequestParams(); |
48 | | - |
49 | 47 | # Only operate on existing pages |
50 | 48 | $pages = $this->getPageSet()->getGoodTitles(); |
51 | 49 | if ( !count( $pages ) ) { |
— | — | @@ -52,6 +50,8 @@ |
53 | 51 | return; |
54 | 52 | } |
55 | 53 | |
| 54 | + $this->params = $this->extractRequestParams(); |
| 55 | + |
56 | 56 | $this->addTables( 'page_props' ); |
57 | 57 | $this->addFields( array( 'pp_page', 'pp_propname', 'pp_value' ) ); |
58 | 58 | $this->addWhereFld( 'pp_page', array_keys( $pages ) ); |
— | — | @@ -125,19 +125,13 @@ |
126 | 126 | } |
127 | 127 | |
128 | 128 | public function getParamDescription() { |
129 | | - return array( 'continue' => 'When more results are available, use this to continue' ); |
| 129 | + return array( 'continue' => 'When more results are available, use this to continue' ); |
130 | 130 | } |
131 | 131 | |
132 | 132 | public function getDescription() { |
133 | 133 | return 'Get various properties defined in the page content'; |
134 | 134 | } |
135 | 135 | |
136 | | - public function getPossibleErrors() { |
137 | | - return array_merge( parent::getPossibleErrors(), array( |
138 | | - array( 'code' => '_badcontinue', 'info' => 'Invalid continue param. You should pass the original value returned by the previous query' ), |
139 | | - ) ); |
140 | | - } |
141 | | - |
142 | 136 | protected function getExamples() { |
143 | 137 | return array( |
144 | 138 | 'api.php?action=query&prop=pageprops&titles=Category:Foo', |