diff --git a/lib/eepHelpers.php b/lib/eepHelpers.php index 7df186b..3470b2f 100755 --- a/lib/eepHelpers.php +++ b/lib/eepHelpers.php @@ -710,7 +710,7 @@ public static function fixBadQuestionMarks( $xml ) // by setting $data to null, can also write just an open or close tag: // // the benefit is that that it makes the output homogeneous to call and supports indenting - function writeXMLTag( $indent, $tag, $data ) + public static function writeXMLTag( $indent, $tag, $data ) { $padding = str_pad( "", $indent ); $data = eep::escapeForXML( $data ); @@ -735,7 +735,7 @@ function writeXMLTag( $indent, $tag, $data ) // Make a string safe for embedding in XML, mostly used for escaping XML so // that it can be carried in some other XML structure. Can be run on any string, // doesn't have to originally be XML. - function escapeForXML( $str ) + public static function escapeForXML( $str ) { // don't accidentally convert a null to a string -- because we care if( null === $str) return null;