plugins/SpecialLog.php
changeset 970 d894086f38cc
parent 960 e74741b8360b
child 980 d13fad911955
--- a/plugins/SpecialLog.php	Wed May 13 09:43:00 2009 -0400
+++ b/plugins/SpecialLog.php	Wed May 13 09:43:57 2009 -0400
@@ -311,7 +311,10 @@
         $crumb = $lang->get('log_breadcrumb_author', array('user' => $user_link));
         break;
       case 'page':
-        $crumb = $lang->get('log_breadcrumb_page', array('page' => '<a href="' . makeUrl($value, false, true) . '">' . htmlspecialchars(get_page_title($value)) . '</a>'));
+        list($pid, $ns) = RenderMan::strToPageID($value);
+        $ns = namespace_factory($pid, $ns);
+        $exist = $ns->exists() ? '' : ' class="wikilink-nonexistent"';
+        $crumb = $lang->get('log_breadcrumb_page', array('page' => '<a' . $exist . ' href="' . makeUrl($value, false, true) . '">' . htmlspecialchars($ns->title) . '</a>'));
         break;
       case 'action':
         $action = ( $lang->get("log_formaction_{$value}") === "log_formaction_{$value}" ) ? $lang->get("log_action_{$value}") : $lang->get("log_formaction_{$value}");