/**
* Fetch dupes from all connected file repositories.
*
- * @return array of File objects
+ * @return array Array of File objects
*/
function getDupes() {
return RepoGroup::singleton()->findBySha1( $this->hash );
/**
*
- * @param array $dupes of File objects
+ * @param array $dupes Array of File objects
*/
function showList( $dupes ) {
$html = array();
}
function execute( $par ) {
- global $wgScript;
-
$this->setHeaders();
$this->outputHeader();
$out->addHTML(
Html::openElement(
'form',
- array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => $wgScript )
+ array( 'id' => 'fileduplicatesearch', 'method' => 'get', 'action' => wfScript() )
) . "\n" .
Html::hidden( 'title', $this->getPageTitle()->getPrefixedDBkey() ) . "\n" .
Html::openElement( 'fieldset' ) . "\n" .