diff --git a/codepot/DEBIAN/postinst.in b/codepot/DEBIAN/postinst.in index 345743bf..0c36335c 100644 --- a/codepot/DEBIAN/postinst.in +++ b/codepot/DEBIAN/postinst.in @@ -22,6 +22,10 @@ chgrp -R "${GROUP}" "@DEPOTDIR@/svnrepo" chmod 0775 "@DEPOTDIR@/svnrepo" } + [ "${filesdir}" = "1" ] && { + chgrp -R "${GROUP}" "@DEPOTDIR@/files" + chmod 0775 "@DEPOTDIR@/files" + } [ "${attachmentsdir}" = "1" ] && { chgrp -R "${GROUP}" "@DEPOTDIR@/attachments" chmod 0775 "@DEPOTDIR@/attachments" diff --git a/codepot/src/codepot/controllers/site.php b/codepot/src/codepot/controllers/site.php index bd9e74fc..04bb6733 100644 --- a/codepot/src/codepot/controllers/site.php +++ b/codepot/src/codepot/controllers/site.php @@ -7,7 +7,7 @@ class Site extends Controller var $VIEW_HOME = 'site_home'; var $VIEW_EDIT = 'site_edit'; var $VIEW_DELETE = 'site_delete'; - var $VIEW_CATALOG = 'site_catalog'; + var $VIEW_CATALOG = 'site_catalog'; var $VIEW_LOG = 'log'; function Site () diff --git a/codepot/src/codepot/models/logmodel.php b/codepot/src/codepot/models/logmodel.php index c26ac259..8ff227ba 100644 --- a/codepot/src/codepot/models/logmodel.php +++ b/codepot/src/codepot/models/logmodel.php @@ -75,7 +75,8 @@ class LogModel extends Model if ($row->action == 'commit') { - list($type,$repo,$rev) = split('[,]', $row->message); + //list($type,$repo,$rev) = split('[,]', $row->message); + list($type,$repo,$rev) = explode(',', $row->message); $tmp['type'] = $type; $tmp['repo'] = $repo; @@ -83,7 +84,7 @@ class LogModel extends Model $log = @svn_log ( 'file:///'.CODEPOT_SVNREPO_DIR."/{$repo}", - $rev, $rev, 1,SVN_DISCOVER_CHANGED_PATHS); + $rev, $rev, 1, SVN_DISCOVER_CHANGED_PATHS); if ($log === FALSE || count($log) < 1) { $tmp['time'] = ''; @@ -99,7 +100,8 @@ class LogModel extends Model } else { - list($type,$repo,$rev,$propname,$action) = split('[,]', $row->message); + //list($type,$repo,$rev,$propname,$action) = split('[,]', $row->message); + list($type,$repo,$rev,$propname,$action) = explode(',', $row->message); $tmp['type'] = $type; $tmp['repo'] = $repo;