Пример #1
0
 function viewRequest()
 {
     global $wgRequest, $wgUser, $wgOut, $wgTitle;
     //@@TODO figure out a way to be a special page but not be in the special namepsace.
     //namely hide the edit/discussion links and rarely cache
     $wgTitle->mNamespace = NS_SPECIAL;
     //do some aditional stream proccessing throw an error if we have a type
     if ($this->mvTitle->getTypeMarker() != null) {
         $page = 'Bad format for Metavid request';
         return mvOutputSpecialPage('bad format for Metavid request', $page);
     }
     $title = 'stream view';
     //$wgOut->setPageTitle( $title );
     //$wgOut->setHTMLTitle( $title );
     $wgOut->setArticleRelated(false);
     $wgOut->enableClientCache(true);
     $page = 'stream page';
     $wgOut->addHTML($page);
     $wgOut->returnToMain(false);
     $wgOut->output();
 }
Пример #2
0
function mvMissingStreamPage($missing_stream_name)
{
    $streamListTitle = Title::newFromText('Mv_List_Streams', NS_SPECIAL);
    $streamAddTitle = Title::newFromText('Mv_Add_Stream', NS_SPECIAL);
    $html = wfMsg('mv_missing_stream_text', $missing_stream_name, $streamListTitle->getFullURL(), $streamAddTitle->getFullURL() . '/' . $missing_stream_name);
    $title = wfMsg('mv_missing_stream', $missing_stream_name);
    mvOutputSpecialPage($title, $html);
}