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