X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=wiki.phtml;h=a1975457e1d1f37ea82be89120be40584ea72985;hb=0556614f18d461d13ec6c5a7d3af69033fd4b4e0;hp=d79da00f170c68b942d8e1c043474d2e32e30e1a;hpb=d9059af5fce967f29c0271e7ed87f13b326bad73;p=lhc%2Fweb%2Fwiklou.git diff --git a/wiki.phtml b/wiki.phtml index d79da00f17..a1975457e1 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -1,92 +1,3 @@ -setPrintable(); } - -if ( "" == $title && "delete" != $action ) { - $wgTitle = Title::newFromText( wfMsg( "mainpage" ) ); -} else { - $wgTitle = Title::newFromURL( $title ); -# if( $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" or strncmp($wgTitle->getDBkey(),"_",1) == 0 ) { - if( $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) { - $wgOut->errorpage( "badtitle", "badtitletext" ); - $wgOut->output(); - exit; - } -} -wfProfileOut(); -if ( -1 == $wgTitle->getNamespace() ) { - wfSpecialPage(); -} else if ( "" != $search ) { - if($go) { - - wfGo ($search); - - } else { - - wfSearch( $search ); - - } - -} else { - switch( $wgTitle->getNamespace() ) { - case 6: - include_once( "$IP/ImagePage.php" ); - $wgArticle = new ImagePage( $wgTitle ); - break; - default: - $wgArticle = new Article( $wgTitle ); - } - - switch( $action ) { - case "view": - case "watch": - case "unwatch": - case "history": - case "delete": - case "revert": - case "rollback": - case "protect": - case "unprotect": - $wgArticle->$action(); - break; - case "print": - $wgArticle->view(); - break; - case "edit": - case "submit": - include_once( "$IP/EditPage.php" ); - $editor = new EditPage( $wgArticle ); - $editor->$action(); - break; - default: - $wgOut->errorpage( "nosuchaction", "nosuchactiontext" ); - } -} - -$wgOut->output(); -foreach ( $wgDeferredUpdateList as $up ) { $up->doUpdate(); } - -?> +