X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=trackback.php;h=0e2036a92c25063842f47e4ad178c0a6bb0dee31;hb=bd49ce9d433030ebb61e60fb16773979cb8067bc;hp=b996ba6aeb0d0fb780f07a86b735809030793759;hpb=e909ec901f4043e5e73f629e3fcdd67006834ab8;p=lhc%2Fweb%2Fwiklou.git diff --git a/trackback.php b/trackback.php index b996ba6aeb..0e2036a92c 100644 --- a/trackback.php +++ b/trackback.php @@ -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 { @@ -38,7 +42,7 @@ XML; public function __construct() { global $wgUseTrackbacks, $wgRequest; - if( !$wgUseTrackbacks && false ) + if( !$wgUseTrackbacks ) $this->XMLerror( "Trackbacks are disabled" ); $this->r = $wgRequest;