X-Git-Url: https://code.racktables.org/racktables-incomplete-works/blobdiff_plain/a9a751cdf14b1f5bc57e89c1631ded5d50299633..d92031986522398d013e0d19f2807b2cc6b04529:/wwwroot/inc/interface.php diff --git a/wwwroot/inc/interface.php b/wwwroot/inc/interface.php index 6caf8c39..547a44be 100644 --- a/wwwroot/inc/interface.php +++ b/wwwroot/inc/interface.php @@ -110,7 +110,7 @@ function renderInterfaceHTML ($pageno, $tabno, $payload) { ?> -<?php echo getTitle ($pageno); ?> +<?php echo getPageName ($pageno); ?> @@ -6232,7 +6232,7 @@ function showPathAndSearch ($pageno, $tabno) $is_first = FALSE; } $item .= $anchor_tail; - $item .= "'>" . $title['name'] . ""; + $item .= "'>" . niftyString ($title['name']) . ""; $items[] = $item; // insert location bread crumbs @@ -6277,13 +6277,10 @@ function showPathAndSearch ($pageno, $tabno) echo implode(' : ', array_reverse ($items)); } +// XXX: deprecated function getTitle ($pageno) { - global $page; - if (isset ($page[$pageno]['title'])) - return $page[$pageno]['title']; - $tmp = callHook ('dynamic_title_decoder', $pageno); - return $tmp['name']; + return getPageName ($pageno); } function showTabs ($pageno, $tabno)