r104767 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104766‎ | r104767 | r104768 >
Date:22:48, 30 November 2011
Author:catrope
Status:ok
Tags:
Comment:
Fix notice in r104684
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/EditPage.php
@@ -867,7 +867,8 @@
868868
869869 case self::AS_SUCCESS_NEW_ARTICLE:
870870 $query = $resultDetails['redirect'] ? 'redirect=no' : '';
871 - $wgOut->redirect( $this->mTitle->getFullURL( $query ) . $resultDetails['sectionanchor'] );
 871+ $anchor = isset ( $resultDetails['sectionanchor'] ) ? $resultDetails['sectionanchor'] : '';
 872+ $wgOut->redirect( $this->mTitle->getFullURL( $query ) . $anchor );
872873 return false;
873874
874875 case self::AS_SUCCESS_UPDATE:

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r104684)bug 15521) Use new section summary when the action of adding a new section a...catrope14:51, 30 November 2011

Status & tagging log