summaryrefslogtreecommitdiff
path: root/inc/cliopts.php
diff options
context:
space:
mode:
authorhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
committerhenning.noren <henning.noren@gmail.com>2007-01-03 21:57:00 +0100
commit44881bd0f492e789063188af34111af4b4117028 (patch)
tree5d54c53e786bbfe45a3dfe0efda26e51c6ca5fc6 /inc/cliopts.php
parentbab4a8bd9772137a187f48beb6e61c185932b692 (diff)
downloadrpg-44881bd0f492e789063188af34111af4b4117028.tar.gz
rpg-44881bd0f492e789063188af34111af4b4117028.tar.bz2
tf_rename_lower.patch
Name the TRUE/FALSE-constants consistently as lowercase everywhere. This might also be an tiny optimization in some environments. darcs-hash:20070103205700-d2a3e-e7ec0aedb938d563f583116a2d5b17f3a3fea36c.gz
Diffstat (limited to 'inc/cliopts.php')
-rw-r--r--inc/cliopts.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/cliopts.php b/inc/cliopts.php
index 074f48772..06167b0bd 100644
--- a/inc/cliopts.php
+++ b/inc/cliopts.php
@@ -31,13 +31,13 @@ if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/
if (version_compare(phpversion(), '4.3.0', '<') || php_sapi_name() == 'cgi') {
// Handle output buffering
@ob_end_flush();
- ob_implicit_flush(TRUE);
+ ob_implicit_flush(true);
// PHP ini settings
set_time_limit(0);
- ini_set('track_errors', TRUE);
- ini_set('html_errors', FALSE);
- ini_set('magic_quotes_runtime', FALSE);
+ ini_set('track_errors', true);
+ ini_set('html_errors', false);
+ ini_set('magic_quotes_runtime', false);
// Define stream constants
define('STDIN', fopen('php://stdin', 'r'));
@@ -306,7 +306,7 @@ class Doku_Cli_Opts_Error {
}
function isError() {
- return TRUE;
+ return true;
}
}
@@ -319,7 +319,7 @@ class Doku_Cli_Opts_Container {
function Doku_Cli_Opts_Container($options) {
foreach ( $options[0] as $option ) {
- if ( FALSE !== ( strpos($option[0], '--') ) ) {
+ if ( false !== ( strpos($option[0], '--') ) ) {
$opt_name = substr($option[0], 2);
} else {
$opt_name = $option[0];
@@ -356,7 +356,7 @@ class Doku_Cli_Opts_Container {
}
function isError() {
- return FALSE;
+ return false;
}
}