@@ -225,8 +225,8 @@ discard block |
||
225 | 225 | |
226 | 226 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
227 | 227 | $this->categoryName[$row['id']] = $row; |
228 | - $this->categories[$row['id']] =& $this->categoryName[$row['id']]; |
|
229 | - $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
|
228 | + $this->categories[$row['id']] = & $this->categoryName[$row['id']]; |
|
229 | + $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']]; |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | return $this->categories; |
@@ -392,8 +392,8 @@ discard block |
||
392 | 392 | $symbol = 'minus'; |
393 | 393 | } else { |
394 | 394 | $temp = isset($this->children[$thisParent_id]) ? array_keys($this->children[$thisParent_id]) : array(); |
395 | - if (isset($temp[count($temp)-1])) { |
|
396 | - $symbol = ($id == $temp[count($temp)-1]) ? 'angle' : 'medium'; |
|
395 | + if (isset($temp[count($temp) - 1])) { |
|
396 | + $symbol = ($id == $temp[count($temp) - 1]) ? 'angle' : 'medium'; |
|
397 | 397 | } |
398 | 398 | } |
399 | 399 | |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | $childs = array(); |
467 | 467 | |
468 | 468 | if (isset($this->children[$id])) { |
469 | - foreach(array_keys($this->children[$id]) as $childId) { |
|
469 | + foreach (array_keys($this->children[$id]) as $childId) { |
|
470 | 470 | $childs = array_merge($childs, array($childId)); |
471 | 471 | $childs = array_merge($childs, $this->getChildNodes($childId)); |
472 | 472 | } |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | $open = 0; |
620 | 620 | $this->expandAll(); |
621 | 621 | |
622 | - for ($y = 0 ;$y < $this->height(); $y = $this->getNextLineTree($y)) { |
|
622 | + for ($y = 0; $y < $this->height(); $y = $this->getNextLineTree($y)) { |
|
623 | 623 | |
624 | 624 | list($categoryName, $parent, $description) = $this->getLineDisplay($y); |
625 | 625 | $level = $this->treeTab[$y]['level']; |
@@ -661,14 +661,14 @@ discard block |
||
661 | 661 | $num_entries = ''; |
662 | 662 | } else { |
663 | 663 | $totFaqRecords += $number[$parent]; |
664 | - $num_entries = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries',$number[$parent]); |
|
664 | + $num_entries = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries', $number[$parent]); |
|
665 | 665 | $num_entries .= sprintf( |
666 | 666 | ' <a href="feed/category/rss.php?category_id=%d&category_lang=%s" target="_blank"><img id="category_%d_RSS" src="assets/img/feed.png" width="16" height="16" alt="RSS"></a>', |
667 | 667 | $parent, |
668 | 668 | $this->language, |
669 | 669 | $parent |
670 | 670 | ); |
671 | - $num_entries .= ')</span>'; |
|
671 | + $num_entries .= ')</span>'; |
|
672 | 672 | } |
673 | 673 | |
674 | 674 | $url = sprintf( |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | $oLink->text = $categoryName; |
683 | 683 | $oLink->tooltip = $description; |
684 | 684 | |
685 | - $output .= $oLink->toHtmlAnchor() . $num_entries; |
|
685 | + $output .= $oLink->toHtmlAnchor().$num_entries; |
|
686 | 686 | $open = $level; |
687 | 687 | } |
688 | 688 | |
@@ -725,7 +725,7 @@ discard block |
||
725 | 725 | return $l + 1; |
726 | 726 | } else { |
727 | 727 | for ($i = $l + 1; $i < $this->height(); $i++) { |
728 | - if ($this->treeTab[$i]["level"]<=$this->treeTab[$l]["level"]) { |
|
728 | + if ($this->treeTab[$i]["level"] <= $this->treeTab[$l]["level"]) { |
|
729 | 729 | return $i; |
730 | 730 | } |
731 | 731 | } |
@@ -765,7 +765,7 @@ discard block |
||
765 | 765 | ); |
766 | 766 | |
767 | 767 | $oLink = new PMF_Link($url, $this->_config); |
768 | - $oLink->id = 'category_' . $categoryId; |
|
768 | + $oLink->id = 'category_'.$categoryId; |
|
769 | 769 | $oLink->itemTitle = $categoryName; |
770 | 770 | $oLink->text = $categoryName; |
771 | 771 | |
@@ -846,7 +846,7 @@ discard block |
||
846 | 846 | return sprintf( |
847 | 847 | '<ul class="%s">%s</ul>', |
848 | 848 | $useCssClass, |
849 | - implode('<li class="divider">' . $separator . '</li>', $temp) |
|
849 | + implode('<li class="divider">'.$separator.'</li>', $temp) |
|
850 | 850 | ); |
851 | 851 | } else { |
852 | 852 | return implode($separator, $temp); |
@@ -1314,7 +1314,7 @@ discard block |
||
1314 | 1314 | if ($lang == $selected_lang) { |
1315 | 1315 | $output .= " selected=\"selected\""; |
1316 | 1316 | } |
1317 | - $output .= ">".$langname."</option>\n"; |
|
1317 | + $output .= ">".$langname."</option>\n"; |
|
1318 | 1318 | } |
1319 | 1319 | } |
1320 | 1320 | |
@@ -1341,10 +1341,10 @@ discard block |
||
1341 | 1341 | $query .= ' ORDER BY id'; |
1342 | 1342 | $result = $this->_config->getDb()->query($query); |
1343 | 1343 | while ($row = $this->_config->getDb()->fetchArray($result)) { |
1344 | - if (!array_key_exists($row['id'],$this->categoryName)) { |
|
1344 | + if (!array_key_exists($row['id'], $this->categoryName)) { |
|
1345 | 1345 | $this->categoryName[$row['id']] = $row; |
1346 | - $this->categories[] =& $this->categoryName[$row['id']]; |
|
1347 | - $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']]; |
|
1346 | + $this->categories[] = & $this->categoryName[$row['id']]; |
|
1347 | + $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']]; |
|
1348 | 1348 | } |
1349 | 1349 | } |
1350 | 1350 | } |