#
function doWikiPass2( $text, $linestart )
{
- global $wgUser;
+ global $wgUser, $wgLang;
wfProfileIn( "OutputPage::doWikiPass2" );
-
+
$text = $this->removeHTMLtags( $text );
$text = $this->replaceVariables( $text );
$text = $this->doQuotes( $text );
$text = $this->doHeadings( $text );
$text = $this->doBlockLevels( $text, $linestart );
-
+
+ $text = $wgLang->replaceDates( $text );
$text = $this->replaceExternalLinks( $text );
$text = $this->replaceInternalLinks ( $text );
wfProfileOut();
return $text;
}
-
+
/* private */ function subReplaceExternalLinks( $s, $protocol, $autonumber )
{
global $wgUser, $printable;
$canonized_headline=preg_replace("/<.*?>/","",$headline); // strip out HTML
$tocline=$canonized_headline;
+ $canonized_headline=str_replace('"',"",$canonized_headline);
$canonized_headline=str_replace(" ","_",trim($canonized_headline));
$refer[$c]=$canonized_headline;
$refers[$canonized_headline]++; // count how many in assoc. array so we can track dupes in anchors
{
global $wgDocType, $wgDTD, $wgUser, $wgLanguageCode, $wgOutputEncoding;
- $ret = "<!DOCTYPE HTML PUBLIC \"$wgDocType\" \"$wgDTD\">\n";
+ $ret = "<!DOCTYPE HTML PUBLIC \"$wgDocType\"\n \"$wgDTD\">\n";
if ( "" == $this->mHTMLtitle ) {
$this->mHTMLtitle = $this->mPagetitle;