diff options
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/js/versions.js | 6 | ||||
-rw-r--r-- | apps/files_versions/lib/versions.php | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js index 07c5655560e..426d521df82 100644 --- a/apps/files_versions/js/versions.js +++ b/apps/files_versions/js/versions.js @@ -68,7 +68,7 @@ function createVersionsDropdown(filename, files) { data: { source: files }, async: false, success: function( versions ) { - + if (versions) { $.each( versions, function(index, row ) { addVersion( row ); @@ -128,7 +128,7 @@ function createVersionsDropdown(filename, files) { version.appendTo('#found_versions'); } - + $('tr').filterAttr('data-file',filename).addClass('mouseOver'); $('#dropdown').show('blind'); @@ -144,6 +144,6 @@ $(this).click( }); } - + } ); diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index b68fa28a1ff..076094ae781 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -106,7 +106,7 @@ class Storage { // create all parent folders - $info=pathinfo($filename);
+ $info=pathinfo($filename); if(!file_exists($versionsFolderName.'/'.$info['dirname'])) { mkdir($versionsFolderName.'/'.$info['dirname'],0750,true); } |