includes/wikiengine/render_xhtml.php
changeset 1156 417e66a664d0
parent 1127 4b858862c35c
child 1174 def792dd9b1b
equal deleted inserted replaced
1155:a1770361ef88 1156:417e66a664d0
   142       $text = str_replace(Carpenter::generate_token($i), '<p>' . nl2br($piece) . '</p>', $text);
   142       $text = str_replace(Carpenter::generate_token($i), '<p>' . nl2br($piece) . '</p>', $text);
   143     }
   143     }
   144     
   144     
   145     return $text;
   145     return $text;
   146   }
   146   }
       
   147   
       
   148   public function mailtonotext($pieces)
       
   149   {
       
   150     $pieces[2] = $pieces[1];
       
   151     return $this->mailtowithtext($pieces);
       
   152   }
       
   153   
       
   154   public function mailtowithtext($pieces)
       
   155   {
       
   156     global $email;
       
   157     return $email->encryptEmail($pieces[1], '', '', $pieces[2]);
       
   158   }
   147 }
   159 }
   148 
   160 
   149 // Alias internal link parsing to RenderMan's method
   161 // Alias internal link parsing to RenderMan's method
   150 function parser_mediawiki_xhtml_internallink($text)
   162 function parser_mediawiki_xhtml_internallink($text)
   151 {
   163 {