* Added pageJoinCond() and userJoinCond() to Revision and exposed them publicly
[lhc/web/wiklou.git] / trackback.php
index b996ba6..1f88af7 100644 (file)
@@ -5,7 +5,11 @@
  * @ingroup SpecialPage
  */
 
-require_once( './includes/WebStart.php' );
+if ( isset( $_SERVER['MW_COMPILED'] ) ) {
+       require ( 'phase3/includes/WebStart.php' );
+} else {
+       require ( dirname( __FILE__ ) . '/includes/WebStart.php' );
+}
 
 class TrackBack {
 
@@ -22,6 +26,9 @@ XML;
                exit;
        }
 
+       /**
+        * @param $err string
+        */
        private function XMLerror( $err = "Invalid request." ) {
                header( "HTTP/1.0 400 Bad Request" );
                header( "Content-Type: application/xml; charset=utf-8" );
@@ -38,7 +45,7 @@ XML;
        public function __construct() {
                global $wgUseTrackbacks, $wgRequest;
 
-               if( !$wgUseTrackbacks && false )
+               if( !$wgUseTrackbacks )
                        $this->XMLerror( "Trackbacks are disabled" );
 
                $this->r = $wgRequest;