1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00
This commit is contained in:
Ryan Cramer
2021-03-19 14:10:45 -04:00
parent a9b8d37c58
commit cd533062d7

View File

@@ -151,7 +151,7 @@ class WireClassLoader {
*
*/
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);
}