~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to web/wiki/inc/IXR_Library.php

  • Committer: Chad Heuschober
  • Date: 2011-06-06 13:37:45 UTC
  • mfrom: (1.1.1244 trunk)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: chad.heuschober@mail.cuny.edu-20110606133745-850mdvnjtv392zta
Pulled in most recent batch of changes from the cuny sps trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
395
395
        $this->output($error->getXml());
396
396
    }
397
397
    function output($xml) {
398
 
        $xml = '<?xml version="1.0"?>'."\n".$xml;
399
 
        $length = strlen($xml);
400
 
        header('Connection: close');
401
 
        header('Content-Length: '.$length);
402
 
        header('Content-Type: text/xml');
403
 
        header('Date: '.date('r'));
404
 
        echo $xml;
 
398
        header('Content-Type: text/xml; charset=utf-8');
 
399
        echo '<?xml version="1.0"?>', "\n", $xml;
405
400
        exit;
406
401
    }
407
402
    function hasMethod($method) {