X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fopensearch.php;h=4fe95c93b5cf318443d1c663638e1bb525021c61;hb=adc5901d21be286ff3459f2cd2bf4373625ac5e5;hp=7709249bb195150e29945f5c9c6354df396b68e0;hpb=0f6bc2190a8d6c5d086cac190c964390ab2c5c0d;p=quix0rs-gnu-social.git diff --git a/actions/opensearch.php b/actions/opensearch.php index 7709249bb1..4fe95c93b5 100644 --- a/actions/opensearch.php +++ b/actions/opensearch.php @@ -13,7 +13,7 @@ * @link http://laconi.ca/ * * Laconica - a distributed open-source microblogging tool - * Copyright (C) 2008, Controlez-Vous, Inc. + * Copyright (C) 2008, 2009, Control Yourself, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -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,10 +81,10 @@ 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() + function isReadOnly($args) { return true; }