X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FEditPage.php;h=c26699608273376a785b7d948c4c24b0d4f61efb;hb=c81e91d4fea80ab15b80fee7f498da10120924dc;hp=9b9e3896768f4bfbd44e721c92720e1cdb7c5ab3;hpb=ba6017b2d3ce3a8b92403c4fb5b8fcb023ca6d2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/EditPage.php b/includes/EditPage.php index 9b9e389676..c266996082 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -511,6 +511,8 @@ class EditPage { throw new PermissionsError( $action, $permErrors ); } + wfRunHooks( 'EditPage::showReadOnlyForm:initial', array( $this, &$wgOut ) ); + $wgOut->setRobotPolicy( 'noindex,nofollow' ); $wgOut->setPageTitle( wfMessage( 'viewsource-title', $this->getContextTitle()->getPrefixedText() ) ); $wgOut->addBacklinkSubtitle( $this->getContextTitle() ); @@ -543,7 +545,7 @@ class EditPage { * Show a read-only error * Parameters are the same as OutputPage:readOnlyPage() * Redirect to the article page if redlink=1 - * @deprecated in 1.19; use displayPermissionsError() instead + * @deprecated since 1.19; use displayPermissionsError() instead */ function readOnlyPage( $source = null, $protected = false, $reasons = array(), $action = null ) { wfDeprecated( __METHOD__, '1.19' ); @@ -1344,8 +1346,8 @@ class EditPage { * Run hooks that can filter edits just before they get saved. * * @param Content $content the Content to filter. - * @param Status $status for reporting the outcome to the caller - * @param User $user the user performing the edit + * @param Status $status For reporting the outcome to the caller + * @param User $user The user performing the edit * * @return bool */ @@ -2606,11 +2608,11 @@ class EditPage { } /** - * @param $isSubjectPreview Boolean: true if this is the section subject/title - * up top, or false if this is the comment summary - * down below the textarea + * @param bool $isSubjectPreview true if this is the section subject/title + * up top, or false if this is the comment summary + * down below the textarea * @param string $summary The text of the summary to display - * @return String + * @return string */ protected function showSummaryInput( $isSubjectPreview, $summary = "" ) { global $wgOut, $wgContLang; @@ -2632,11 +2634,11 @@ class EditPage { } /** - * @param $isSubjectPreview Boolean: true if this is the section subject/title - * up top, or false if this is the comment summary - * down below the textarea + * @param bool $isSubjectPreview true if this is the section subject/title + * up top, or false if this is the comment summary + * down below the textarea * @param string $summary the text of the summary to display - * @return String + * @return string */ protected function getSummaryPreview( $isSubjectPreview, $summary = "" ) { // avoid spaces in preview, gets always trimmed on save @@ -3621,7 +3623,7 @@ HTML /** * Call the stock "user is blocked" page * - * @deprecated in 1.19; throw an exception directly instead + * @deprecated since 1.19; throw an exception directly instead */ function blockedPage() { wfDeprecated( __METHOD__, '1.19' ); @@ -3633,7 +3635,7 @@ HTML /** * Produce the stock "please login to edit pages" page * - * @deprecated in 1.19; throw an exception directly instead + * @deprecated since 1.19; throw an exception directly instead */ function userNotLoggedInPage() { wfDeprecated( __METHOD__, '1.19' ); @@ -3644,7 +3646,7 @@ HTML * Show an error page saying to the user that he has insufficient permissions * to create a new page * - * @deprecated in 1.19; throw an exception directly instead + * @deprecated since 1.19; throw an exception directly instead */ function noCreatePermission() { wfDeprecated( __METHOD__, '1.19' );