Beispiel #1
0
function wfSpecialEmail()
{
    global $wgRequest;
    $f = new EmailForm($wgRequest);
    $f->execute();
}
Beispiel #2
0
 private function shareTree()
 {
     global $wrHostName, $wgLang, $wgUser, $IP;
     $link = 'http://' . $wrHostName . '/fte/index.php?userName='******'&treeName=' . urlencode($this->name);
     $primaryPage = $this->getPrimaryPage();
     if ($primaryPage) {
         $link .= '&page=' . urlencode($primaryPage->getPrefixedText());
     }
     $subject = wfMsg('sharetreesubject');
     $text = wfMsg('sharetreetext', $link);
     $request = new FauxRequest(array('returnto' => $wgLang->specialPage('FamilyTree'), 'wpSubject' => $subject, 'wpText' => $text));
     require_once "{$IP}/extensions/other/SpecialEmail.php";
     $form = new EmailForm($request);
     $form->execute();
 }