* Moving hardcoded styles into CSS.
[lhc/web/wiklou.git] / includes / GlobalFunctions.php
index 7ea1028..f50ce44 100644 (file)
@@ -213,7 +213,7 @@ function wfUtf8Sequence( $codepoint ) {
 function wfMungeToUtf8( $string ) {
        global $wgInputEncoding; # This is debatable
        #$string = iconv($wgInputEncoding, "UTF-8", $string);
-       $string = preg_replace ( '/&#([0-9]+);/e', 'wfUtf8Sequence($1)', $string );
+       $string = preg_replace ( '/&#0*([0-9]+);/e', 'wfUtf8Sequence($1)', $string );
        $string = preg_replace ( '/&#x([0-9a-f]+);/ie', 'wfUtf8Sequence(0x$1)', $string );
        # Should also do named entities here
        return $string;
@@ -1017,7 +1017,7 @@ function wfTimestamp($outputtype=TS_UNIX,$ts=0) {
                $uts=$ts;
        } else {
                # Bogus value; fall back to the epoch...
-               wfDebug("wfTimestamp() given bogus time value.\n");
+               wfDebug("wfTimestamp() fed bogus time value: $outputtype; $ts\n");
                $uts = 0;
        }