Diff of /mambo/branches/4.6/index.php
Parent Directory
|
Revision Log
|
Patch
| revision 185, Wed Jan 25 23:55:33 2006 UTC | revision 186, Thu Jan 26 11:51:01 2006 UTC | |
|---|---|---|
| # | Line 486 | Line 486 |
| 486 | * Make a pathway string for display | * Make a pathway string for display |
| 487 | */ | */ |
| 488 | function makePathway () { | function makePathway () { |
| 489 | $last = count($this->_names) - 1; | |
| 490 | if ($last == 0) return ''; | |
| 491 | $mainframe = mosMainFrame::getInstance(); | $mainframe = mosMainFrame::getInstance(); |
| 492 | $result = "<span class='pathway'>"; | $result = "<span class='pathway'>"; |
| 493 | $config = mamboCore::getMamboCore(); | $config = mamboCore::getMamboCore(); |
| # | Line 497 | Line 499 |
| 499 | if (file_exists( "$rootpath/$imgPath" )) $img = "<img src='$config->mosConfig_live_site/images/M_images/arrow.png' alt='arrow' />"; | if (file_exists( "$rootpath/$imgPath" )) $img = "<img src='$config->mosConfig_live_site/images/M_images/arrow.png' alt='arrow' />"; |
| 500 | else $img = '>'; | else $img = '>'; |
| 501 | } | } |
| $last = count($this->_names) - 1; | ||
| 502 | foreach ($this->_names as $i=>$name) { | foreach ($this->_names as $i=>$name) { |
| 503 | if ($i === $last) $result .= "$name</span>"; | if ($i === $last) $result .= "$name</span>"; |
| 504 | else { | else { |
| # | Line 508 | Line 509 |
| 509 | } | } |
| 510 | $customs = $mainframe->getCustomPathWay(); | $customs = $mainframe->getCustomPathWay(); |
| 511 | foreach ($customs as $custom) $result .= $custom; | foreach ($customs as $custom) $result .= $custom; |
| 512 | $result .= '</span>'; | |
| 513 | return $result; | return $result; |
| 514 | } | } |
| 515 |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

