Changeset 476 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Apr 26, 2014 5:06:03 AM (10 years ago)
Author:
anonymous
Message:

Disabled header output when _CLI is defined.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r475 r476  
    370370
    371371        // Character set. This should also be printed in the html header template.
    372         header('Content-type: text/html; charset=' . $this->getParam('character_set'));
     372        if (!defined('_CLI')) {
     373            header('Content-type: text/html; charset=' . $this->getParam('character_set'));
     374        }
    373375
    374376        // Set the version of the codebase we're using.
     
    377379            $codebase_version = trim(file_get_contents($codebase_version_file));
    378380            $this->setParam(array('codebase_version' => $codebase_version));
    379             header('X-Codebase-Version: ' . $codebase_version);
     381            if (!defined('_CLI')) {
     382                header('X-Codebase-Version: ' . $codebase_version);
     383            }
    380384        }
    381385
Note: See TracChangeset for help on using the changeset viewer.