소스 검색

Fix Customer::getLogoPath method

Alan Lam 6 년 전
부모
커밋
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);