diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-10-02 13:52:04 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-10-02 13:52:04 +0200 |
commit | 54e5a1084628696d4a694c9325e4d55aaa41d82c (patch) | |
tree | 6afb72f471b803cc23daff50761b66d1f04ced8d /apps/gallery/templates | |
parent | 07b3b103ce866f04b88a87aa325fe57ae4d0545c (diff) | |
download | nextcloud-server-54e5a1084628696d4a694c9325e4d55aaa41d82c.tar.gz nextcloud-server-54e5a1084628696d4a694c9325e4d55aaa41d82c.zip |
avoid creating empty albums, removing od depreciated code openings
Diffstat (limited to 'apps/gallery/templates')
-rw-r--r-- | apps/gallery/templates/index.php | 2 | ||||
-rw-r--r-- | apps/gallery/templates/view_album.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/gallery/templates/index.php b/apps/gallery/templates/index.php index 97869907557..0e89e448768 100644 --- a/apps/gallery/templates/index.php +++ b/apps/gallery/templates/index.php @@ -1,4 +1,4 @@ -<? +<?php OC_Util::addStyle('gallery', 'styles'); OC_Util::addScript('gallery', 'albums'); OC_Util::addScript('gallery', 'album_cover'); diff --git a/apps/gallery/templates/view_album.php b/apps/gallery/templates/view_album.php index c1298a22c22..ea2969e0110 100644 --- a/apps/gallery/templates/view_album.php +++ b/apps/gallery/templates/view_album.php @@ -1,4 +1,4 @@ -<? +<?php OC_Util::addStyle('gallery', 'styles'); OC_Util::addScript('gallery', 'album_cover'); OC_Util::addScript( 'files_imageviewer', 'lightbox' ); @@ -9,11 +9,11 @@ OC_Util::addStyle( 'files_imageviewer', 'lightbox' ); <a href="?"><input type="button" value="Back" /></a><br/> </div> <div id="gallery_list"> -<? +<?php foreach ($_['photos'] as $a) { ?> -<a onclick="javascript:viewImage('/','<? echo $a; ?>');"><img src="ajax/thumbnail.php?img=<? echo $a ?>"></a> -<? +<a onclick="javascript:viewImage('/','<?php echo $a; ?>');"><img src="ajax/thumbnail.php?img=<?php echo $a ?>"></a> +<?php } ?> |