Browse Source

Fix Customer::getLogoPath method

Alan Lam 6 years ago
parent
commit
b9f455003e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      engine/customer.php

+ 1 - 0
engine/customer.php

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