librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1443] Removed no longer needed (hopefully) escape-cal


From: Jørgen Bøhnsdalen
Subject: [Librefm-commits] [1443] Removed no longer needed (hopefully) escape-calls
Date: Sat, 09 May 2009 22:31:00 +0000

Revision: 1443
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1443
Author:   jurgbohn
Date:     2009-05-09 22:30:55 +0000 (Sat, 09 May 2009)
Log Message:
-----------
Removed no longer needed (hopefully) escape-calls

Modified Paths:
--------------
    trunk/nixtape/api/ArtistXML.php
    trunk/nixtape/api/xml.php

Modified: trunk/nixtape/api/ArtistXML.php
===================================================================
--- trunk/nixtape/api/ArtistXML.php     2009-05-09 21:54:50 UTC (rev 1442)
+++ trunk/nixtape/api/ArtistXML.php     2009-05-09 22:30:55 UTC (rev 1443)
@@ -56,8 +56,8 @@
 
                $bio = $artistXml->addChild("bio", null);
                $bio->addChild("published", $artist->bio_published);
-               $bio->addChild("summary", repamp($artist->bio_summary));
-               $bio->addChild("content", repamp($artist->bio_content));
+               $bio->addChild("summary", $artist->bio_summary);
+               $bio->addChild("content", $artist->bio_content);
 
                return($xml);
        }
@@ -72,16 +72,15 @@
 
                $xml = new SimpleXMLElement("<lfm status=\"ok\"></lfm>");
                $root = $xml->addChild("toptracks", null);
-               $root->addAttribute("artist", repamp($artist->name));
+               $root->addAttribute("artist", $artist->name);
 
                $tracks = $artist->getTopTracks(50);
 
                // Loop over every result and add as children to "toptracks".
-               // Encode trackname as utf8 and replace bad symbols with 
html-equivalents
                for($i = 1; $i < count($tracks); $i++) {
                        $track = $root->addChild("track", null);
                        $track->addAttribute("rank", $i);
-                       $track->addChild("name", repamp($tracks[$i]->name));
+                       $track->addChild("name", $tracks[$i]->name);
                        $track->addChild("mbid", $tracks[$i]->mbid);
                        $track->addChild("playcount", 
$tracks[$i]->getPlayCount());
                        $track->addChild("listeners", 
$tracks[$i]->getListenerCount());

Modified: trunk/nixtape/api/xml.php
===================================================================
--- trunk/nixtape/api/xml.php   2009-05-09 21:54:50 UTC (rev 1442)
+++ trunk/nixtape/api/xml.php   2009-05-09 22:30:55 UTC (rev 1443)
@@ -22,7 +22,7 @@
     public static function prettyXML($xml) {
        $dom = new DOMDocument('1.0'); 
        $dom->preserveWhitespace = false;
-       $dom->loadXML(utf8_encode($xml->asXML()));  
+       $dom->loadXML($xml->asXML());
        $dom->formatOutput = true;
        return($dom->saveXML());
     } 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]