diff --git a/mod/photos.php b/mod/photos.php index 1bb380696a..8ec83b622b 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -58,11 +58,11 @@ function photos_init(&$a) { $ret['albums'] = array(); foreach($albums as $k => $album) { $entry = array( - 'text' => $album['album'], - 'total' => $album['total'], - 'url' => z_root() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album['album']), + 'text' => $album['album'], + 'total' => $album['total'], + 'url' => z_root() . '/photos/' . $a->data['user']['nickname'] . '/album/' . bin2hex($album['album']), 'urlencode' => urlencode($album['album']), - 'bin2hex' => bin2hex($album['album']) + 'bin2hex' => bin2hex($album['album']) ); $ret['albums'][] = $entry; } @@ -75,10 +75,11 @@ function photos_init(&$a) { if($albums['success']) { $photo_albums_widget = replace_macros(get_markup_template('photo_albums.tpl'),array( - '$nick' => $a->data['user']['nickname'], - '$title' => t('Photo Albums'), - '$albums' => $albums['albums'], - '$baseurl' => z_root(), + '$nick' => $a->data['user']['nickname'], + '$title' => t('Photo Albums'), + 'recent' => t('Recent Photos'), + '$albums' => $albums['albums'], + '$baseurl' => z_root(), '$upload' => array( t('Upload New Photos'), $a->get_baseurl() . '/photos/' . $a->data['user']['nickname'] . '/upload/' . bin2hex($album)), '$can_post' => $can_post )); diff --git a/view/templates/photo_albums.tpl b/view/templates/photo_albums.tpl index de8f2cd16c..02b4392957 100644 --- a/view/templates/photo_albums.tpl +++ b/view/templates/photo_albums.tpl @@ -1,7 +1,7 @@