예제 #1
0
 function print_end_page()
 {
     global $wgUser, $wgOut;
     # display an infobox for every user
     $wgOut->addWikiText(wfMsg('Ms-end-box'));
     # display a neat infobox thingy for registered users
     if (!$wgUser->isAnon()) {
         $wgOut->addWikiText(wfMsgData('Ms-user-box', $this->search_mask->get_top_cat()->conf));
     }
 }
 /**
  * The standarized way to print out redcords. This should
  * RETURN the string to print out.
  */
 public function print_record(MsRecord $record)
 {
     global $msConfiguration;
     $tmpl = $this->record_template;
     if ($record->get_type()) {
         $tmpl .= '-' . $record->get_type();
     }
     return wfMsgData($tmpl, $record->data);
     /*
     $tmpl = wfMsg($this->record_template);
     if($tmpl == '<'.$this->record_template.'>') { # the output when there's no such page
     	print $this->record_template." does not exist.<p>";
     	$tmpl = wgMsg($msConfiguration['default-record-message']);
     }
     $ret = strtr($tmpl, $record->data);
     return $ret;
     */
 }