diff options
author | Myron Turner <turnermm02@shaw.ca> | 2017-07-09 22:39:35 -0500 |
---|---|---|
committer | Myron Turner <turnermm02@shaw.ca> | 2017-07-09 22:39:35 -0500 |
commit | ffe3602c5b571dceb438bc1041c20f8f35a07d07 (patch) | |
tree | decf50f2c8547e110ecc08118506f114688c0571 | |
parent | 7dbafed4f4fbe5d1ed41db2cd066f602a7f39f49 (diff) | |
download | dokuwiki-ffe3602c5b571dceb438bc1041c20f8f35a07d07.tar.gz dokuwiki-ffe3602c5b571dceb438bc1041c20f8f35a07d07.zip |
show pages where broken links occur: page_id => broken_link
-rwxr-xr-x | bin/wantedpages.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/wantedpages.php b/bin/wantedpages.php index 54bfd4755..44254a8ec 100755 --- a/bin/wantedpages.php +++ b/bin/wantedpages.php @@ -134,13 +134,14 @@ class WantedPagesCLI extends DokuCLI { $links = array(); $cns = getNS($page['id']); $exists = false; + $pid = $page['id']; foreach($instructions as $ins) { if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink')) { $mid = $ins[1][0]; resolve_pageid($cns, $mid, $exists); if(!$exists) { list($mid) = explode('#', $mid); //record pages without hashs - $links[] = $mid; + $links[] = "$pid => $mid"; } } } |