Fix prop access in templates context

tags/0.2.5_el5 0.2.5_el5
Daniel Berteaud 11 years ago
parent e1e1e69d32
commit 2e0b74fb31
  1. 2
      root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All
  2. 3
      root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All

@ -10,7 +10,7 @@ $createUser = ($createUser eq 'enabled') ? JSON::true : JSON::false;
my $data; my $data;
if ((($pydio->prop('ManualConf') || 'disabled') eq 'enabled') && open CONF, "/var/lib/pydio/plugins/conf.serial/boot.conf/bootstrap.json"){ if ((($pydio{'ManualConf'} || 'disabled') eq 'enabled') && open CONF, "/var/lib/pydio/plugins/conf.serial/boot.conf/bootstrap.json"){
$data = <CONF>; $data = <CONF>;
close CONF; close CONF;
$data = from_json($data); $data = from_json($data);

@ -2,7 +2,7 @@
use PHP::Serialization qw(serialize unserialize); use PHP::Serialization qw(serialize unserialize);
my $data; my $data;
if ((($pydio->prop('ManualConf') || 'disabled') eq 'enabled') && open CONF, "/var/lib/pydio/plugins/conf.serial/plugins_configs.ser"){ if ((($pydio{'ManualConf'} || 'disabled') eq 'enabled') && open CONF, "/var/lib/pydio/plugins/conf.serial/plugins_configs.ser"){
$data = <CONF>; $data = <CONF>;
close CONF; close CONF;
$data = unserialize ($data); $data = unserialize ($data);
@ -78,5 +78,4 @@ $data = serialize($data);
# manually # manually
$data =~ s/s:8:"__true__";/b:1;/g; $data =~ s/s:8:"__true__";/b:1;/g;
$OUT = $data; $OUT = $data;
} }
Loading…
Cancel
Save