]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/opensearch.php
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
[quix0rs-gnu-social.git] / actions / opensearch.php
index d7705972f0d68055cdaf693efe98cd73af2c29b9..d1f4895ce4a2d569aa2263eaf3bce37a9d8f0ede 100644 (file)
@@ -67,7 +67,7 @@ class OpensearchAction extends Action
             $short_name = _('Notice Search');
         }
         header('Content-Type: text/html');
-        common_start_xml();
+        $this->startXML();
         $this->elementStart('OpenSearchDescription', array('xmlns' => 'http://a9.com/-/spec/opensearch/1.1/'));
         $short_name =  common_config('site', 'name').' '.$short_name;
         $this->element('ShortName', null, $short_name);
@@ -81,7 +81,12 @@ class OpensearchAction extends Action
         $this->element('OutputEncoding', null, 'UTF-8');
         $this->element('InputEncoding', null, 'UTF-8');
         $this->elementEnd('OpenSearchDescription');
-        common_end_xml();
+        $this->endXML();
+    }
+
+    function isReadOnly($args)
+    {
+        return true;
     }
 }