Index: trunk/phase3/includes/Export.php |
— | — | @@ -425,21 +425,14 @@ |
426 | 426 | * @access private |
427 | 427 | */ |
428 | 428 | function openPage( $row ) { |
429 | | - global $wgRestrictionTypes; |
430 | 429 | $out = " <page>\n"; |
431 | 430 | $title = Title::makeTitle( $row->page_namespace, $row->page_title ); |
432 | 431 | $out .= ' ' . wfElementClean( 'title', array(), $title->getPrefixedText() ) . "\n"; |
433 | 432 | $out .= ' ' . wfElement( 'id', array(), strval( $row->page_id ) ) . "\n"; |
434 | | - # Get page restrictions |
435 | | - $restrictions = array(); |
436 | | - foreach( $wgRestrictionTypes as $action ) { |
437 | | - $restrictions[$action] = implode( '', $title->getRestrictions( $action ) ); |
| 433 | + if( '' != $row->page_restrictions ) { |
| 434 | + $out .= ' ' . wfElement( 'restrictions', array(), |
| 435 | + strval( $row->page_restrictions ) ) . "\n"; |
438 | 436 | } |
439 | | - $restrictions = Article::flattenRestrictions( $restrictions ); |
440 | | - if( '' != $restrictions ) { |
441 | | - $out .= ' ' . wfElement( 'restrictions', array(), |
442 | | - strval( $restrictions ) ) . "\n"; |
443 | | - } |
444 | 437 | return $out; |
445 | 438 | } |
446 | 439 | |