From 44881bd0f492e789063188af34111af4b4117028 Mon Sep 17 00:00:00 2001 From: "henning.noren" Date: Wed, 3 Jan 2007 21:57:00 +0100 Subject: 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 --- bin/dwpage.php | 2 +- bin/wantedpages.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/dwpage.php b/bin/dwpage.php index ac344dcdf..4f577d633 100755 --- a/bin/dwpage.php +++ b/bin/dwpage.php @@ -246,7 +246,7 @@ switch ( $OPTS->arg(0) ) { exit(1); } - if ( stristr( realpath(dirname($TARGET_FN)), realpath($conf['datadir']) ) !== FALSE ) { + if ( stristr( realpath(dirname($TARGET_FN)), realpath($conf['datadir']) ) !== false ) { fwrite( STDERR, "Attempt to check out file into data directory - not allowed\n"); exit(1); } diff --git a/bin/wantedpages.php b/bin/wantedpages.php index b94539373..aa0e1818d 100755 --- a/bin/wantedpages.php +++ b/bin/wantedpages.php @@ -62,7 +62,7 @@ function dw_get_pages($dir) { $pages = array(); $dh = opendir($dir); - while ( FALSE !== ( $entry = readdir($dh) ) ) { + while ( false !== ( $entry = readdir($dh) ) ) { $status = dw_dir_filter($entry, $dir); if ( $status == DW_DIR_CONTINUE ) { continue; @@ -86,7 +86,7 @@ function dw_internal_links($page) { $instructions = p_get_instructions(file_get_contents($page['file'])); $links = array(); $cns = getNS($page['id']); - $exists = FALSE; + $exists = false; foreach($instructions as $ins){ if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink') ){ $mid = $ins[1][0]; -- cgit v1.2.3