Skip to content
Snippets Groups Projects
Commit 2ea20862 authored by Bartek Przybylski's avatar Bartek Przybylski
Browse files

gallery fixes

parent 349923c5
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,14 @@ div#gallery_album_box { ...@@ -17,7 +17,14 @@ div#gallery_album_box {
padding: 10px; padding: 10px;
border: solid 1px black; border: solid 1px black;
position: relative; position: relative;
overflow: hidden;
color: #999;
} }
div#gallery_album_box:hover {
color: black;
}
.leftcontent div#gallery_album_box { .leftcontent div#gallery_album_box {
margin: 5px; margin: 5px;
} }
......
...@@ -21,7 +21,9 @@ class OC_Gallery_Scanner { ...@@ -21,7 +21,9 @@ class OC_Gallery_Scanner {
public static function scanDir($path, &$albums) { public static function scanDir($path, &$albums) {
$current_album = array('name'=> $path, 'imagesCount' => 0, 'images' => array()); $current_album = array('name'=> $path, 'imagesCount' => 0, 'images' => array());
$current_album['name'] = str_replace('/', '.', str_replace(OC::$CONFIG_DATADIRECTORY, '', $current_album['name'])); $current_album['name'] = str_replace('/', '.', str_replace(OC::$CONFIG_DATADIRECTORY, '', $current_album['name']));
$current_album['name'] = ($current_album['name']==='')?'main':$current_album['name']; $current_album['name'] = ($current_album['name']==='') ?
'main' :
trim($current_album['name'],'.');
if ($dh = OC_Filesystem::opendir($path)) { if ($dh = OC_Filesystem::opendir($path)) {
while (($filename = readdir($dh)) !== false) { while (($filename = readdir($dh)) !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment