&1' ; file_put_contents($infile, $input); $result = shell_exec($cmd . $params); $exists = file_exists($outfile); if (!$exists){ Helper::warnLog('Conversion test failed. Raw output:' . $result); return false; } else { unlink($outfile); } return true; } public static function getL10n(){ return \OCP\Util::getL10N(self::APP_NAME); } public static function getConverter(){ return self::getAppValue('converter', 'local'); } public static function setConverter($value){ return self::setAppValue('converter', $value); } public static function getConverterUrl(){ return self::getAppValue('converter_url', 'http://localhost:16080'); } public static function setConverterUrl($value){ return self::setAppValue('converter_url', $value); } protected static function getAppValue($key, $default){ return \OCP\Config::getAppValue(self::APP_NAME, $key, $default); } protected static function setAppValue($key, $value){ return \OCP\Config::setAppValue(self::APP_NAME, $key, $value); } }