Explorar o código

Fix Customer::getLogoPath method

Alan Lam %!s(int64=6) %!d(string=hai) anos
pai
achega
b9f455003e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      engine/customer.php

+ 1 - 0
engine/customer.php

@@ -145,6 +145,7 @@ class Customer extends Model {
 
 	public function getLogoPath(): ?string {
 		$slug = Util::slug($this->name);
+		$slug = str_replace("-", "_", $slug);
 
 		$path = sprintf("public/img/customer_logos/%s_logo.png", $slug);