$request->wasPosted() ? $request->getCheck( 'wpDownload' ) : true
) . '<br />';
+ if ( $wgExportAllowListContributors ) {
+ $form .= Xml::checkLabel(
+ wfMsg( 'exportlistauthors' ),
+ 'listauthors',
+ 'listauthors',
+ $request->wasPosted() ? $request->getCheck( 'listauthors' ) : false
+ ) . '<br />';
+ }
+
$form .= Xml::submitButton( wfMsg( 'export-submit' ), Linker::tooltipAndAccesskeyAttribs( 'export' ) );
$form .= Xml::closeElement( 'form' );
$out->addHTML( $form );
}
+ /**
+ * @return bool
+ */
private function userCanOverrideExportDepth() {
return $this->getUser()->isAllowed( 'override-export-depth' );
}
if( is_null( $title ) ) {
continue; #TODO: perhaps output an <error> tag or something.
}
- if( !$title->userCanRead() ) {
+ if( !$title->userCan( 'read' ) ) {
continue; #TODO: perhaps output an <error> tag or something.
}
}
}
+ /**
+ * @param $title Title
+ * @return array
+ */
private function getPagesFromCategory( $title ) {
global $wgContLang;
return $pages;
}
+ /**
+ * @param $nsindex int
+ * @return array
+ */
private function getPagesFromNamespace( $nsindex ) {
global $wgContLang;
/**
* Validate link depth setting, if available.
+ * @param $depth int
+ * @return int
*/
private function validateLinkDepth( $depth ) {
global $wgExportMaxLinkDepth;
return intval( min( $depth, 5 ) );
}
- /** Expand a list of pages to include pages linked to from that page. */
+ /**
+ * Expand a list of pages to include pages linked to from that page.
+ * @param $inputPages array
+ * @param $pageSet array
+ * @param $depth int
+ * @return array
+ */
private function getPageLinks( $inputPages, $pageSet, $depth ) {
for( ; $depth > 0; --$depth ) {
$pageSet = $this->getLinks(