瀏覽代碼

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);