Permalink
Browse files

Whoops... left some testing code in.

  • Loading branch information...
1 parent 0393331 commit 71588440e9b1a189b727cc7c75fb0feb97ba72d4 thepurpleblob committed May 1, 2008
Showing with 0 additions and 26 deletions.
  1. +0 −26 question/format.php
View
@@ -552,32 +552,6 @@ function importimagefile( $path, $base64 ) {
return $newfile;
}
- /**
- * Utility function to reconstruct part of the
- * xml data structure (from xmlize) as a string in order
- * to identify the actual data therein
- * @param array $xml section of the xml data structure
- * @return string data with everything else removed
- */
- function xmltostring( $xml ) {
- // if it's not an array then it's probably just data
- if (!is_array($xml)) {
- $text = s(addslashes($xml));
- }
- else {
- // otherwise parse the array
- $text = '';
- foreach ($xml as $tag=>$data) {
- // if tag is '@' then it's attributes and we don't care
- if ($tag!=='@') {
- $text = $text . $this->xmltostring( $data );
- }
- }
- }
-
- return $text;
- }
-
/*******************
* EXPORT FUNCTIONS

0 comments on commit 7158844

Please sign in to comment.