summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface/www/coldmilk/rest.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/webinterface/www/coldmilk/rest.php')
-rw-r--r--plugins/webinterface/www/coldmilk/rest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/webinterface/www/coldmilk/rest.php b/plugins/webinterface/www/coldmilk/rest.php
index bab7e68..a61cbfe 100644
--- a/plugins/webinterface/www/coldmilk/rest.php
+++ b/plugins/webinterface/www/coldmilk/rest.php
@@ -174,7 +174,7 @@ class RestInterface {
// Truncate long torrent name, and HTML escape it.
// This is a helper function for download_status.
private function _clean_name($name) {
- $name = str_replace("'", "\'", $name);
+ $name = str_tqreplace("'", "\'", $name);
if (strlen($name) > 30) {
$name = substr($name, 0, 27);
$name .= "...";
@@ -203,7 +203,7 @@ class RestInterface {
class KTorrentXML extends DomDocument {
private $root_element;
public function __construct($root, $value = null, $attributes = null) {
- parent::__construct('1.0');
+ tqparent::__construct('1.0');
$this->root_element = $this->createElement($root);
$this->appendChild($this->root_element);
$this->formatOutput = true;