]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/UserFlag/actions/flagprofile.php
PHP5.5 fix: Better use of startXML for Action classes (mostly AJAX)
[quix0rs-gnu-social.git] / plugins / UserFlag / actions / flagprofile.php
index 7096d3748e4cb9fd3cfe2edab43264799d71e6a2..4c4dc46f60ffcb044a3a7e6e932fa7b6ea3df7fd 100644 (file)
@@ -117,9 +117,7 @@ class FlagprofileAction extends ProfileFormAction
      */
     function ajaxResults()
     {
-        header('Content-Type: text/xml;charset=utf-8');
-        $this->xw->startDocument('1.0', 'UTF-8');
-        $this->elementStart('html');
+        $this->startHTML('text/xml;charset=utf-8');
         $this->elementStart('head');
         // TRANS: AJAX form title for a flagged profile.
         $this->element('title', null, _m('Flagged for review'));
@@ -128,6 +126,6 @@ class FlagprofileAction extends ProfileFormAction
         // TRANS: Body text for AJAX form when a profile has been flagged for review.
         $this->element('p', 'flagged', _m('Flagged'));
         $this->elementEnd('body');
-        $this->elementEnd('html');
+        $this->endHTML();
     }
 }