Move function xmlsafe() from Export.php to OAI extension
authorwithoutaname <drevitchi@gmail.com>
Thu, 17 Jul 2014 22:34:39 +0000 (15:34 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 19 Jul 2014 21:26:23 +0000 (23:26 +0200)
Exporting function from Export.php.

Change-Id: I82a78ff7a34402f2cc065643d90b064b996c525d

RELEASE-NOTES-1.24
includes/Export.php
maintenance/dictionary/mediawiki.dic

index 9c4be8b..197fd24 100644 (file)
@@ -252,6 +252,7 @@ changes to languages because of Bugzilla reports.
   is unused by any modern extension.
 * Removed maintenance/nextJobDB.php; no longer in use.
 * Removed global function wfViewPrevNext(). (deprecated since 1.19)
+* Removed global function xmlsafe() from Export.php. (moved to OAIRepo extension)
 
 ==== Renamed classes ====
 * CLDRPluralRuleConverter_Expression to CLDRPluralRuleConverterExpression
index 21fcd5a..e57fe7f 100644 (file)
@@ -1552,23 +1552,3 @@ class DumpMultiWriter {
                return $filenames;
        }
 }
-
-/**
- * @param string $string
- * @return string
- * @todo FIXME: Only used in OAI extension. Move over there.
- */
-function xmlsafe( $string ) {
-       wfProfileIn( __FUNCTION__ );
-
-       /**
-        * The page may contain old data which has not been properly normalized.
-        * Invalid UTF-8 sequences or forbidden control characters will make our
-        * XML output invalid, so be sure to strip them out.
-        */
-       $string = UtfNormal::cleanUp( $string );
-
-       $string = htmlspecialchars( $string );
-       wfProfileOut( __FUNCTION__ );
-       return $string;
-}
index 2f05d12..81bc06e 100644 (file)
@@ -4569,7 +4569,6 @@ xmldoublequote
 xmlfm
 xmlimport
 xmlns
-xmlsafe
 xmlselect
 xor
 xpinstall