Skip to content

Commit

Permalink
fix function visibility warnings introduced in the 'dump xml' feature…
Browse files Browse the repository at this point in the history
… addition
  • Loading branch information
dougplant committed Mar 28, 2017
1 parent 1016a92 commit 0b27cfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/eepHelpers.php
Expand Up @@ -710,7 +710,7 @@ public static function fixBadQuestionMarks( $xml )
// by setting $data to null, can also write just an open or close tag:
// <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 );
Expand All @@ -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;
Expand Down

0 comments on commit 0b27cfc

Please sign in to comment.