summaryrefslogtreecommitdiff
path: root/bin
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 /bin
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 'bin')
-rwxr-xr-xbin/dwpage.php2
-rwxr-xr-xbin/wantedpages.php4
2 files changed, 3 insertions, 3 deletions
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];