From: Alexandre Emsenhuber Date: Fri, 29 Feb 2008 19:58:50 +0000 (+0000) Subject: * Document ParserMakeImageParams hook X-Git-Tag: 1.31.0-rc.0~49303 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=664ad238833a8a74a265a5e2d39dcafd62bc520a;p=lhc%2Fweb%2Fwiklou.git * Document ParserMakeImageParams hook * Fix capitalization of @addtogroup in RepoGroup.php * Fix comment in SpecialRevisiondelete.php, replace xml functions from wf* to Xml::* and use __METHOD__ instead of hardcoded function name --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 21c955575e..0d99832eaa 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -802,6 +802,11 @@ $varCache: varaiable cache (array) $parser: Parser object $limitReport: text that will be included (without comment tags) +'ParserMakeImageParams': Called before the parser make an image link, use this to modify the parameters of the image. +$title: title object representing the file +$file: file object that will be used to create the image +&$params: 2-D array of parameters + 'ParserTestParser': called when creating a new instance of Parser in maintenance/parserTests.inc $parser: Parser object created diff --git a/includes/SpecialRevisiondelete.php b/includes/SpecialRevisiondelete.php index b6ca7e1466..c1702d1403 100644 --- a/includes/SpecialRevisiondelete.php +++ b/includes/SpecialRevisiondelete.php @@ -41,8 +41,7 @@ function wfSpecialRevisiondelete( $par = null ) { */ class RevisionDeleteForm { /** - * @param Title $page - * @param int $oldid + * @param WebRequest $request */ function __construct( $request ) { global $wgUser; @@ -83,17 +82,17 @@ class RevisionDeleteForm { $wgOut->addWikiMsg( 'revdelete-text' ); $items = array( - wfInputLabel( wfMsg( 'revdelete-log' ), 'wpReason', 'wpReason', 60 ), - wfSubmitButton( wfMsg( 'revdelete-submit' ) ) ); + Xml::inputLabel( wfMsg( 'revdelete-log' ), 'wpReason', 'wpReason', 60 ), + Xml::submitButton( wfMsg( 'revdelete-submit' ) ) ); $hidden = array( - wfHidden( 'wpEditToken', $wgUser->editToken() ), - wfHidden( 'target', $this->page->getPrefixedText() ) ); + Xml::hidden( 'wpEditToken', $wgUser->editToken() ), + Xml::hidden( 'target', $this->page->getPrefixedText() ) ); foreach( $this->revisions as $revid ) { - $hidden[] = wfHidden( 'oldid[]', $revid ); + $hidden[] = Xml::hidden( 'oldid[]', $revid ); } $special = SpecialPage::getTitleFor( 'Revisiondelete' ); - $wgOut->addHtml( wfElement( 'form', array( + $wgOut->addHtml( Xml::element( 'form', array( 'method' => 'post', 'action' => $special->getLocalUrl( 'action=submit' ) ), null ) ); @@ -102,7 +101,7 @@ class RevisionDeleteForm { foreach( $this->checks as $item ) { list( $message, $name, $field ) = $item; $wgOut->addHtml( '
' . - wfCheckLabel( wfMsg( $message), $name, $name, $rev->isDeleted( $field ) ) . + Xml::checkLabel( wfMsg( $message), $name, $name, $rev->isDeleted( $field ) ) . '
' ); } $wgOut->addHtml( '' ); @@ -228,7 +227,7 @@ class RevisionDeleter { $this->db->update( 'revision', array( 'rev_deleted' => $bitfield ), array( 'rev_id' => $rev->getId() ), - 'RevisionDeleter::updateRevision' ); + __METHOD__ ); } /** @@ -244,7 +243,7 @@ class RevisionDeleter { 'rc_comment' => ($bitfield & Revision::DELETED_COMMENT) ? wfMsg( 'rev-deleted-comment' ) : $rev->getComment() ), array( 'rc_this_oldid' => $rev->getId() ), - 'RevisionDeleter::updateRecentChanges' ); + __METHOD__ ); } /** diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index b0e1d78202..d685121a6c 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -2,7 +2,7 @@ /** * Prioritized list of file repositories - * @addtogroup filerepo + * @addtogroup FileRepo */ class RepoGroup { var $localRepo, $foreignRepos, $reposInitialised = false;