#62: Don't clobber the $albums variables in the navbar, so it now shows all albums not just the single page you're currently viewing
This commit is contained in:
parent
04d1e59778
commit
cc3370c4b1
@ -63,7 +63,7 @@ class GlobalConfiguration
|
|||||||
private function addAlbumsToView()
|
private function addAlbumsToView()
|
||||||
{
|
{
|
||||||
$albums = DbHelper::getAlbumsForCurrentUser_NonPaged()->get();
|
$albums = DbHelper::getAlbumsForCurrentUser_NonPaged()->get();
|
||||||
View::share('albums', $albums);
|
View::share('g_albums', $albums);
|
||||||
|
|
||||||
$albumsToUpload = DbHelper::getAlbumsForCurrentUser_NonPaged('upload-photos')->get();
|
$albumsToUpload = DbHelper::getAlbumsForCurrentUser_NonPaged('upload-photos')->get();
|
||||||
View::share('g_albums_upload', $albumsToUpload);
|
View::share('g_albums_upload', $albumsToUpload);
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
<i class="fa fa-book"></i> @lang('navigation.navbar.albums')
|
<i class="fa fa-book"></i> @lang('navigation.navbar.albums')
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
@foreach ($albums as $album)
|
@foreach ($g_albums as $album)
|
||||||
<a class="dropdown-item" href="{{ $album->url() }}">{{ $album->name }}</a>
|
<a class="dropdown-item" href="{{ $album->url() }}">{{ $album->name }}</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user