Changeset 476 for trunk/lib/App.inc.php
- Timestamp:
- Apr 26, 2014 5:06:03 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r475 r476 370 370 371 371 // 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 } 373 375 374 376 // Set the version of the codebase we're using. … … 377 379 $codebase_version = trim(file_get_contents($codebase_version_file)); 378 380 $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 } 380 384 } 381 385
Note: See TracChangeset
for help on using the changeset viewer.