1<?php 2 3namespace dokuwiki\plugin\config\core\Setting; 4 5/** 6 * Class setting_im_convert 7 */ 8class SettingImConvert extends SettingString { 9 10 /** @inheritdoc */ 11 public function update($input) { 12 if($this->isProtected()) return false; 13 14 $input = trim($input); 15 16 $value = is_null($this->local) ? $this->default : $this->local; 17 if($value == $input) return false; 18 19 if($input && !file_exists($input)) { 20 $this->error = true; 21 $this->input = $input; 22 return false; 23 } 24 25 $this->local = $input; 26 return true; 27 } 28} 29