diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dwpage.php | 2 | ||||
-rwxr-xr-x | bin/wantedpages.php | 4 |
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]; |