Définition des constantes READONLY

This commit is contained in:
Daniel Berteaud 2012-06-10 13:43:31 +02:00
parent 7c923688dc
commit 1004b68729
3 changed files with 8 additions and 12 deletions

View File

@ -3,10 +3,7 @@
define('CALDAV_PERSONAL', 'personal');
define('CALDAV_URL', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u');
{
my $ro = $sogosync{'ReadOnly'} || 'disabled';
$OUT .= " define('CALDAV_READONLY', true);\n"
if ($ro =~ m/^yes|enabled|1$/);
$ro = ($ro =~ m/^yes|enabled|1$/) ? 'true':'false';
$OUT .= " define('CALDAV_READONLY', $ro);\n";
}

View File

@ -1,11 +1,7 @@
define('CARDDAV_PERSONAL', 'personal');
define('CARDDAV_URL', 'http://localhost:{$sogod{'TCPPort'}}/SOGo/dav/%u/Contacts/');
{
my $ro = $sogosync{'ReadOnly'} || 'disabled';
$OUT .= " define('CARDDAV_READONLY', true);\n"
if ($ro =~ m/^yes|enabled|1$/);
$ro = ($ro =~ m/^yes|enabled|1$/) ? 'true':'false';
$OUT .= " define('CARDDAV_READONLY', $ro);\n";
}

View File

@ -1,5 +1,5 @@
Name: smeserver-sogosync
Version: 0.1.6
Version: 0.1.7
Release: 0.beta5%{?dist}
Summary: SME Server integration for sogosync
@ -41,6 +41,9 @@ echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Jun 10 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.7-1
- Define *_READONLY constant event when set to false
* Sun Jun 10 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1.6-1
- Correction des templates