mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for #1084
This commit is contained in:
parent
ed1edc64bc
commit
2b2cfbc2e5
@ -735,6 +735,22 @@ class Account extends Eloquent
|
|||||||
return Document::getDirectFileUrl($this->logo, $this->getLogoDisk());
|
return Document::getDirectFileUrl($this->logo, $this->getLogoDisk());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getLogoPath()
|
||||||
|
{
|
||||||
|
if ( ! $this->hasLogo()){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$disk = $this->getLogoDisk();
|
||||||
|
$adapter = $disk->getAdapter();
|
||||||
|
|
||||||
|
if ($adapter instanceof \League\Flysystem\Adapter\Local) {
|
||||||
|
return $adapter->applyPathPrefix($this->logo);
|
||||||
|
} else {
|
||||||
|
return Document::getDirectFileUrl($this->logo, $this->getLogoDisk());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<a href="{{ $account->website }}" style="color: #19BB40; text-decoration: underline;">
|
<a href="{{ $account->website }}" style="color: #19BB40; text-decoration: underline;">
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<img src="{{ isset($message) ? $message->embed($account->getLogoURL()) : $account->getLogoURL() }}" style="max-height:50px; max-width:140px; margin-left: 33px;" />
|
<img src="{{ isset($message) ? $message->embed($account->getLogoPath()) : $account->getLogoURL() }}" style="max-height:50px; max-width:140px; margin-left: 33px;" />
|
||||||
|
|
||||||
@if ($account->website)
|
@if ($account->website)
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user