From 2e0b74fb317c66dcd0ed47ae5158f6bdc8bfab5d Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 12 Feb 2014 18:05:02 +0100 Subject: [PATCH] Fix prop access in templates context --- .../templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All | 2 +- .../var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All b/root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All index d6a67ce..5be09a6 100644 --- a/root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All +++ b/root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/10All @@ -10,7 +10,7 @@ $createUser = ($createUser eq 'enabled') ? JSON::true : JSON::false; 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 = ; close CONF; $data = from_json($data); diff --git a/root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All b/root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All index d1fdf73..bbad688 100644 --- a/root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All +++ b/root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All @@ -2,7 +2,7 @@ use PHP::Serialization qw(serialize unserialize); 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 = ; close CONF; $data = unserialize ($data); @@ -78,5 +78,4 @@ $data = serialize($data); # manually $data =~ s/s:8:"__true__";/b:1;/g; $OUT = $data; - } \ No newline at end of file