comparison mgallery.php @ 4:014e1d6991a3

Oops, fix the last breadcrumb.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 15 May 2015 16:29:38 +0300
parents c85f630a4198
children 1bf73b49fc91
comparison
equal deleted inserted replaced
3:c85f630a4198 4:014e1d6991a3
202 202
203 function mgPrintBreadCrumbs($galData) 203 function mgPrintBreadCrumbs($galData)
204 { 204 {
205 $res = array(); 205 $res = array();
206 if ($galData["caption"]) 206 if ($galData["caption"])
207 $res[] = "<a class=\"naviBreadCrumbCurr\" href=\"".mgGetURL($pdata["path"], FALSE)."\">".chentities($galData["caption"])."</a>"; 207 $res[] = "<a class=\"naviBreadCrumbCurr\" href=\"".mgGetURL($galData["path"], FALSE)."\">".chentities($galData["caption"])."</a>";
208 208
209 $tmp = $galData; 209 $tmp = $galData;
210 while (isset($tmp["parent"])) 210 while (isset($tmp["parent"]))
211 { 211 {
212 $pdata = $tmp["parent"]; 212 $pdata = $tmp["parent"];