This commit is contained in:
redmatrix
2015-12-07 16:15:52 -08:00
13 changed files with 889 additions and 1058 deletions

View File

@@ -188,7 +188,7 @@ class RedBrowser extends DAV\Browser\Plugin {
$parentHash = '';
$owner = $this->auth->owner_id;
$splitPath = split('/', $fullPath);
$splitPath = explode('/', $fullPath);
if (count($splitPath) > 3) {
for ($i = 3; $i < count($splitPath); $i++) {
$attachName = urldecode($splitPath[$i]);

View File

@@ -1299,7 +1299,6 @@ function widget_album($args) {
//edit album name
$album_edit = null;
$photos = array();
if($r) {
$twist = 'rotright';
@@ -1338,6 +1337,7 @@ function widget_album($args) {
$o .= replace_macros($tpl, array(
'$photos' => $photos,
'$album' => (($title) ? $title : $album),
'$album_id' => rand(),
'$album_edit' => array(t('Edit Album'), $album_edit),
'$can_post' => false,
'$upload' => array(t('Upload'), z_root() . '/photos/' . get_app()->profile['channel_address'] . '/upload/' . bin2hex($album)),