www/engine/System/Classes/Utils/Form.php 1 location
|
@@ 22-31 (lines=10) @@
|
19 |
|
* @return false : the method always returns false |
20 |
|
*/ |
21 |
|
|
22 |
|
private function displayError(string $phrase, bool $popup) : bool { |
23 |
|
|
24 |
|
$text = Language::get($phrase); |
25 |
|
|
26 |
|
if (!$popup) Messages::set('error', $text); else Popup::set('negative', $text); |
27 |
|
|
28 |
|
# ------------------------ |
29 |
|
|
30 |
|
return false; |
31 |
|
} |
32 |
|
|
33 |
|
/** |
34 |
|
* Handle the form. The method catches POST data and passes it to a callback function. |
www/engine/System/Classes/Utils/Uploader.php 1 location
|
@@ 49-58 (lines=10) @@
|
46 |
|
* @return false : the method always returns false |
47 |
|
*/ |
48 |
|
|
49 |
|
private static function displayError(string $phrase, bool $popup) : bool { |
50 |
|
|
51 |
|
$text = Language::get($phrase); |
52 |
|
|
53 |
|
if (!$popup) Messages::set('error', $text); else Popup::set('negative', $text); |
54 |
|
|
55 |
|
# ------------------------ |
56 |
|
|
57 |
|
return false; |
58 |
|
} |
59 |
|
|
60 |
|
/** |
61 |
|
* Save an uploaded file |