Skip to content
Snippets Groups Projects
Commit ffe3602c authored by Myron Turner's avatar Myron Turner
Browse files

show pages where broken links occur: page_id => broken_link

parent 7dbafed4
No related branches found
No related tags found
No related merge requests found
...@@ -134,13 +134,14 @@ class WantedPagesCLI extends DokuCLI { ...@@ -134,13 +134,14 @@ class WantedPagesCLI extends DokuCLI {
$links = array(); $links = array();
$cns = getNS($page['id']); $cns = getNS($page['id']);
$exists = false; $exists = false;
$pid = $page['id'];
foreach($instructions as $ins) { foreach($instructions as $ins) {
if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink')) { if($ins[0] == 'internallink' || ($conf['camelcase'] && $ins[0] == 'camelcaselink')) {
$mid = $ins[1][0]; $mid = $ins[1][0];
resolve_pageid($cns, $mid, $exists); resolve_pageid($cns, $mid, $exists);
if(!$exists) { if(!$exists) {
list($mid) = explode('#', $mid); //record pages without hashs list($mid) = explode('#', $mid); //record pages without hashs
$links[] = $mid; $links[] = "$pid => $mid";
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment