* (bug 11649) Show input form when Special:Whatlinkshere has no parameters
[lhc/web/wiklou.git] / includes / RecentChange.php
index 79f32d0..41af45a 100644 (file)
@@ -221,8 +221,7 @@ class RecentChange
                if( $wgUseEnotif ) {
                        # this would be better as an extension hook
                        global $wgUser;
-                       include_once( "UserMailer.php" );
-                       $enotif = new EmailNotification();
+                       $enotif = new EmailNotification;
                        $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] );
                        $enotif->notifyOnPageChange( $wgUser, $title,
                                $this->mAttribs['rc_timestamp'],
@@ -626,3 +625,4 @@ class RecentChange
        }
 }
 
+