Index: trunk/phase3/includes/diff/DifferenceEngine.php |
— | — | @@ -46,7 +46,12 @@ |
47 | 47 | function __construct( $titleObj = null, $old = 0, $new = 0, $rcid = 0, |
48 | 48 | $refreshCache = false, $htmldiff = false, $unhide = false ) |
49 | 49 | { |
50 | | - $this->mTitle = $titleObj; |
| 50 | + if ( $titleObj ) { |
| 51 | + $this->mTitle = $titleObj; |
| 52 | + } else { |
| 53 | + global $wgTitle; |
| 54 | + $this->mTitle = $wgTitle; |
| 55 | + } |
51 | 56 | wfDebug("DifferenceEngine old '$old' new '$new' rcid '$rcid'\n"); |
52 | 57 | |
53 | 58 | if ( 'prev' === $new ) { |