Commit 197c55eb authored by Ryan Wade's avatar Ryan Wade

fixed error when rendering special page: sitemap

parent ee1fc6f6
...@@ -2,14 +2,16 @@ ...@@ -2,14 +2,16 @@
$bc_id = $_GLOBAL["pageId"]; $bc_id = $_GLOBAL["pageId"];
$bc_title = $_GLOBAL["pageTitle"]; $bc_title = $_GLOBAL["pageTitle"];
$bc_link = "<a class='breadcrumbLink' href='viewpage.php?id=".$bc_id."'>".$bc_title."</a>"; $bc_link = "<a class='breadcrumbLink' href='viewpage.php?id=".$bc_id."'>".$bc_title."</a>";
$bc_id = $_GLOBAL["SQL"][$bc_id][1];//SQL get parent id if($bc_id != -1)
while($bc_id != -1)
{ {
$bc_title = $_GLOBAL["SQL"][$bc_id][2];//SQL get Title
$bc_link = "<a class='breadcrumbLink' href='viewpage.php?id=".$bc_id."'>".$bc_title."</a>"." > ".$bc_link;
$bc_id = $_GLOBAL["SQL"][$bc_id][1];//SQL get parent id $bc_id = $_GLOBAL["SQL"][$bc_id][1];//SQL get parent id
while($bc_id != -1)
{
$bc_title = $_GLOBAL["SQL"][$bc_id][2];//SQL get Title
$bc_link = "<a class='breadcrumbLink' href='viewpage.php?id=".$bc_id."'>".$bc_title."</a>"." > ".$bc_link;
$bc_id = $_GLOBAL["SQL"][$bc_id][1];//SQL get parent id
}
} }
?> ?>
<div id="breadcrumb"> <div id="breadcrumb">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment