Index: trunk/extensions/DSMW/specials/ArticleAdminPage.php |
— | — | @@ -195,8 +195,6 @@ |
196 | 196 | </table> |
197 | 197 | </FORM>'; |
198 | 198 | |
199 | | - |
200 | | - |
201 | 199 | ///////////// PUSHFEEDS TABLE////////////////////////// |
202 | 200 | |
203 | 201 | $i = 0; |
— | — | @@ -320,15 +318,6 @@ |
321 | 319 | </div> |
322 | 320 | '; |
323 | 321 | |
324 | | -// if (!$this->getArticle('Property:ChangeSetID')->exists()) { |
325 | | -// $output .=' |
326 | | -// <FORM METHOD="POST" ACTION="'.$urlServer.'/extensions/DSMW/bot/DSMWBot.php" name="scriptExec"> |
327 | | -// <table'.$tableStyle.'><td><button type="submit"><b>[UPDATE PROPERTY TYPE]</b></button> |
328 | | -// </td></table> |
329 | | -// <input type="hidden" name="server" value="'.$urlServer.'"> |
330 | | -// </form>'; |
331 | | -// } |
332 | | - |
333 | 322 | $wgOut->addHTML( $output ); |
334 | 323 | return false; |
335 | 324 | } |
— | — | @@ -481,24 +470,15 @@ |
482 | 471 | } |
483 | 472 | |
484 | 473 | /** |
485 | | - * @param <String> $title |
486 | | - * @return <String> |
| 474 | + * Returns an array of page titles received via the request. |
| 475 | + * |
| 476 | + * @return array |
487 | 477 | */ |
488 | | - function getPageIdWithTitle( $title ) { |
489 | | - $dbr = wfGetDB( DB_SLAVE ); |
490 | | - $id = $dbr->selectField( 'page', 'page_id', array( |
491 | | - 'page_title' => $title ) ); |
492 | | - return $id; |
493 | | - } |
494 | | - |
495 | | - /** |
496 | | - * returns an array of page titles received via the request |
497 | | - */ |
498 | | - function getRequestedPages( $request ) { |
499 | | - |
| 478 | + protected function getRequestedPages( $request ) { |
500 | 479 | $results = array(); |
501 | 480 | $res = utils::getSemanticQuery( $request ); |
502 | 481 | $count = $res->getCount(); |
| 482 | + |
503 | 483 | for ( $i = 0; $i < $count; $i++ ) { |
504 | 484 | |
505 | 485 | $row = $res->getNext(); |
— | — | @@ -515,14 +495,4 @@ |
516 | 496 | return $results; |
517 | 497 | } |
518 | 498 | |
519 | | - function getArticle( $article_title ) { |
520 | | - $title = Title::newFromText( $article_title ); |
521 | | - |
522 | | - // Can't load page if title is invalid. |
523 | | - if ( $title == null ) return null; |
524 | | - $article = new Article( $title ); |
525 | | - |
526 | | - return $article; |
527 | | - } |
528 | | - |
529 | 499 | } |