Conditions | 4 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function getXoopsBreadcrumbs() |
||
24 | { |
||
25 | $ret = array() ; |
||
26 | foreach ($this->paths as $val) { |
||
27 | // delayed language constant |
||
28 | if (substr($val['name'], 0, 1) == '_' && defined($val['name'])) { |
||
29 | $ret[] = array( |
||
30 | 'url' => $val['url'] , |
||
31 | 'name' => constant($val['name']) |
||
32 | ) ; |
||
33 | } else { |
||
34 | $ret[] = $val ; |
||
35 | } |
||
36 | } |
||
37 | unset($ret[count($ret) - 1 ]['url']) ; |
||
38 | return $ret ; |
||
39 | } |
||
40 | |||
63 |