| Index: trunk/phase3/RELEASE-NOTES-1.19 |
| — | — | @@ -95,6 +95,7 @@ |
| 96 | 96 | * (bug 18424) Special:Prefixindex and Special:Allpages paging links are |
| 97 | 97 | really small, and somewhat inconsistent with each other. |
| 98 | 98 | * Per page edit-notices now work in namespaces without subpages enabled. |
| | 99 | +* (bug 30245) Use the correct way to construct a log page title |
| 99 | 100 | |
| 100 | 101 | === API changes in 1.19 === |
| 101 | 102 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
| Index: trunk/phase3/includes/RecentChange.php |
| — | — | @@ -621,7 +621,7 @@ |
| 622 | 622 | $wgCanonicalServer, $wgScript; |
| 623 | 623 | |
| 624 | 624 | if( $this->mAttribs['rc_type'] == RC_LOG ) { |
| 625 | | - $titleObj = Title::newFromText( 'Log/' . $this->mAttribs['rc_log_type'], NS_SPECIAL ); |
| | 625 | + $titleObj = SpecialPage::getTitleFor( 'Log', $this->mAttribs['rc_log_type'] ); |
| 626 | 626 | } else { |
| 627 | 627 | $titleObj =& $this->getTitle(); |
| 628 | 628 | } |
| Index: trunk/phase3/includes/ChangesList.php |
| — | — | @@ -511,7 +511,7 @@ |
| 512 | 512 | if( $rc->mAttribs['rc_type'] == RC_MOVE || $rc->mAttribs['rc_type'] == RC_MOVE_OVER_REDIRECT ) { |
| 513 | 513 | // Log entries |
| 514 | 514 | } elseif( $rc->mAttribs['rc_log_type'] ) { |
| 515 | | - $logtitle = Title::newFromText( 'Log/'.$rc->mAttribs['rc_log_type'], NS_SPECIAL ); |
| | 515 | + $logtitle = SpecialPage::getTitleFor( 'Log', $rc->mAttribs['rc_log_type'] ); |
| 516 | 516 | $this->insertLog( $s, $logtitle, $rc->mAttribs['rc_log_type'] ); |
| 517 | 517 | // Log entries (old format) or log targets, and special pages |
| 518 | 518 | } elseif( $rc->mAttribs['rc_namespace'] == NS_SPECIAL ) { |