diff options
Diffstat (limited to 'h-source/Application/Models')
-rw-r--r-- | h-source/Application/Models/GenericModel.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/h-source/Application/Models/GenericModel.php b/h-source/Application/Models/GenericModel.php index 64f24be..70bc816 100644 --- a/h-source/Application/Models/GenericModel.php +++ b/h-source/Application/Models/GenericModel.php @@ -81,13 +81,20 @@ class GenericModel extends Model_Tree { { $html = null; $listArray = array('page','history_page'); + + $count = 0; foreach ($viewArgs as $field => $value) { - if (!in_array($field,$listArray)) + if ($count < 5) { - $value = getTranslationFunction($field) !== 'gtext' ? gtext(call_user_func(getTranslationFunction($field),$value)) : gtext($value); - $html .= "<div class='viewall_popup_menu_status_item'>".$value."</div>\n"; + if (!in_array($field,$listArray)) + { + $value = getTranslationFunction($field) !== 'gtext' ? gtext(call_user_func(getTranslationFunction($field),$value)) : gtext($value); + $html .= "<div class='viewall_popup_menu_status_item'>".$value."</div>\n"; + + $count++; + } } } return $html; |