Просмотр исходного кода

Fix Customer::getLogoPath method

Alan Lam 6 лет назад
Родитель
Сommit
b9f455003e
1 измененных файлов с 1 добавлено и 0 удалено
  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);