Ejemplo n.º 1
0
 function execute($par)
 {
     $user = $this->getUser();
     $output = $this->getOutput();
     $request = $this->getRequest();
     $this->setHeaders();
     $article = new Article($this->getPageTitle(), 0);
     $title = $this->getPageTitle();
     // Clear newtalk
     $user->setNewtalk(false);
     $view = new NewUserMessagesView($output, $article, $title, $user, $request);
     if ($request->getBool('lqt_inline')) {
         $view->doInlineEditForm();
         return;
     }
     $view->showOnce();
     // handles POST etc.
     $view->show();
 }
 function execute($par)
 {
     global $wgOut, $wgRequest, $wgUser;
     $this->user = $wgUser;
     $this->output = $wgOut;
     $this->request = $wgRequest;
     $this->setHeaders();
     $article = new Article($this->getTitle());
     $title = $this->getTitle();
     // Clear newtalk
     $this->user->setNewtalk(false);
     $view = new NewUserMessagesView($this->output, $article, $title, $this->user, $this->request);
     if ($this->request->getBool('lqt_inline')) {
         $view->doInlineEditForm();
         return;
     }
     $view->showOnce();
     // handles POST etc.
     $view->show();
 }