mirror of
https://github.com/processwire/processwire.git
synced 2025-08-23 23:02:58 +02:00
Fix issue processwire/processwire-issues#1319
This commit is contained in:
@@ -151,7 +151,7 @@ class WireClassLoader {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function addPrefix($prefix, $path) {
|
public function addPrefix($prefix, $path) {
|
||||||
if(!isset($this->suffixes[$prefix])) $this->prefixes[$prefix] = array();
|
if(!isset($this->prefixes[$prefix])) $this->prefixes[$prefix] = array();
|
||||||
if(!empty($path) && is_dir($path)) $this->prefixes[$prefix][] = $this->path($path);
|
if(!empty($path) && is_dir($path)) $this->prefixes[$prefix][] = $this->path($path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user