photo album listing widget broken
This commit is contained in:
parent
f18a909eef
commit
e0c6ee2082
@ -650,10 +650,10 @@ function photos_content(&$a) {
|
|||||||
$albumselect .= '<option value="" ' . ((! $selname) ? ' selected="selected" ' : '') . '> </option>';
|
$albumselect .= '<option value="" ' . ((! $selname) ? ' selected="selected" ' : '') . '> </option>';
|
||||||
if(count($a->data['albums'])) {
|
if(count($a->data['albums'])) {
|
||||||
foreach($a->data['albums'] as $album) {
|
foreach($a->data['albums'] as $album) {
|
||||||
if(($album['album'] === '') || ($album['album'] === 'Contact Photos') || ($album['album'] === t('Contact Photos')))
|
if($album['text'] === '')
|
||||||
continue;
|
continue;
|
||||||
$selected = (($selname === $album['album']) ? ' selected="selected" ' : '');
|
$selected = (($selname === $album['text']) ? ' selected="selected" ' : '');
|
||||||
$albumselect .= '<option value="' . $album['album'] . '"' . $selected . '>' . $album['album'] . '</option>';
|
$albumselect .= '<option value="' . $album['text'] . '"' . $selected . '>' . $album['text'] . '</option>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{if $albums}}
|
{{if $albums}}
|
||||||
<ul>
|
<ul>
|
||||||
{{foreach $albums as $al}}
|
{{foreach $albums as $al}}
|
||||||
<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.album}}</a></li>
|
<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.text}}</a></li>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</ul>
|
</ul>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
Reference in New Issue
Block a user