Pārlūkot izejas kodu

! Small fix for right to left: use not empy instead of isset because is_last is set to false for the first item

emanuele 12 gadi atpakaļ
vecāks
revīzija
dda011c7c5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Themes/default/index.template.php

+ 1 - 1
Themes/default/index.template.php

@@ -498,7 +498,7 @@ function template_menu()
 	{
 		echo '
 				<li id="button_', $act, '">
-					<a class="', $button['active_button'] ? 'active' : '', isset($button['is_last']) ? ' last' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
+					<a class="', $button['active_button'] ? 'active' : '', !empty($button['is_last']) ? ' last' : '', '" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
 						', $button['title'], '
 					</a>';
 		if (!empty($button['sub_buttons']))