summaryrefslogtreecommitdiff
path: root/bin/wantedpages.php
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wantedpages.php')
-rwxr-xr-xbin/wantedpages.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/wantedpages.php b/bin/wantedpages.php
index c8b7153b2..30171fc15 100755
--- a/bin/wantedpages.php
+++ b/bin/wantedpages.php
@@ -13,13 +13,13 @@ require_once DOKU_INC.'inc/cliopts.php';
#------------------------------------------------------------------------------
function usage() {
print "Usage: wantedpages.php [wiki:namespace]
-
+
Outputs a list of wanted pages (pages which have
internal links but do not yet exist).
-
+
If the optional [wiki:namespace] is not provided,
defaults to the root wiki namespace
-
+
OPTIONS
-h, --help get help
";
@@ -54,12 +54,12 @@ function dw_get_pages($dir) {
global $conf;
$trunclen = strlen($conf['datadir'].':');
}
-
+
if ( !is_dir($dir) ) {
fwrite( STDERR, "Unable to read directory $dir\n");
exit(1);
}
-
+
$pages = array();
$dh = opendir($dir);
while ( false !== ( $entry = readdir($dh) ) ) {