X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=wiki.phtml;h=a1975457e1d1f37ea82be89120be40584ea72985;hp=98895a2c16499626965a51a569b9fa78465e44e0;hb=8b18ae7b5;hpb=e3bbb66de82c9555c40816b750065106fd9466c6 diff --git a/wiki.phtml b/wiki.phtml index 98895a2c16..a1975457e1 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -1,85 +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 { - $wgArticle = new Article(); - - 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(); } - -?> +