| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * @package VikWP - Libraries |
| 4 | 4 | * @subpackage adapter.filesystem |
| 5 | 5 | * @author E4J s.r.l. |
| 6 | - * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved. | |
| 6 | + * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved. | |
| 7 | 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | 8 | * @link https://vikwp.com |
| 9 | 9 | */ |
| 10 | 10 | |
| @@ -102,9 +102,9 @@ | ||
| 102 | 102 | $path = trim($path); |
| 103 | 103 | |
| 104 | 104 | if (empty($path)) |
| 105 | 105 | { |
| 106 | - throw new Exception('JPath::clean() does not accept empty paths.', 500); | |
| 106 | + throw new InvalidArgumentException('JPath::clean() does not accept empty paths.', 500); | |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | // Remove double slashes and backslashes and convert all slashes and backslashes to DIRECTORY_SEPARATOR. |
| 110 | 110 | // If dealing with a UNC path don't forget to prepend the path with a backslash. |