* (bug 2572) Fix edit conflict handling
* (bug 2595) Show "Earlier" and "Latest" links on history go to the first/last
page in the article history pager.
+* Don't show empty-page text in 'Show changes' on new page
=== Caveats ===
/**
* Get text of an article from database
* @param int $oldid 0 for whatever the latest revision is
- * @param bool $noredir Set to true to avoid following redirects
+ * @param bool $noredir Set to false to follow redirects
* @param bool $globalTitle Set to true to change the global $wgTitle object when following redirects or other unexpected title changes
* @return string
*/
- function fetchContent( $oldid = 0, $noredir = false, $globalTitle = false ) {
+ function fetchContent( $oldid = 0, $noredir = true, $globalTitle = false ) {
if ( $this->mContentLoaded ) {
return $this->mContent;
}
function isRedirect( $text = false ) {
if ( $text === false ) {
$this->loadContent();
- $titleObj = Title::newFromRedirect( $this->fetchContent( false, true ) );
+ $titleObj = Title::newFromRedirect( $this->fetchContent() );
} else {
$titleObj = Title::newFromRedirect( $text );
}
*/
function getDiff() {
require_once( 'DifferenceEngine.php' );
- $oldtext = $this->mArticle->getContent( true );
+ $oldtext = $this->mArticle->fetchContent();
$newtext = $this->mArticle->getTextOfLastEditWithSectionReplacedOrAdded(
$this->section, $this->textbox1, $this->summary, $this->edittime );
$oldtitle = wfMsg( 'currentrev' );