mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-02-09 08:58:41 +00:00
Name fix
This commit is contained in:
parent
4827fbc585
commit
989575f217
|
|
@ -80,7 +80,7 @@ Example usage:
|
||||||
|
|
||||||
```
|
```
|
||||||
if(($pathNew = realpath($path)) === false || strpos($pathNew, self::MODULE_PATH) === false) {
|
if(($pathNew = realpath($path)) === false || strpos($pathNew, self::MODULE_PATH) === false) {
|
||||||
throw new FilePathException($path);
|
throw new PathException($path);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -88,7 +88,7 @@ The example throws an exception if the path either doesn't exist or is trying to
|
||||||
|
|
||||||
```
|
```
|
||||||
if(($pathNew = realpath($path)) === false || !Validator::startsWith($pathNew, ROOT_PATH)) {
|
if(($pathNew = realpath($path)) === false || !Validator::startsWith($pathNew, ROOT_PATH)) {
|
||||||
throw new FilePathException($path);
|
throw new PathException($path);
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user