Skip to content

Commit

Permalink
Merge pull request #208 from xxl4/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
xxl4 authored May 7, 2024
2 parents 551434f + b3f63ee commit 5e36b31
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 28 deletions.
4 changes: 1 addition & 3 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

use Throwable;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Illuminate\Support\Facades\Log;

class Handler extends ExceptionHandler
{
Expand Down Expand Up @@ -37,7 +35,7 @@ class Handler extends ExceptionHandler
public function report(Throwable $exception)
{

if ($exception instanceof \HttpException) {
if ($exception instanceof \Exception) {
$message = $exception->getMessage();
if(!empty($message)) {
$pos = strpos($message, "bagisto");
Expand Down
2 changes: 2 additions & 0 deletions packages/Webkul/Paypal/src/Helpers/Ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function processIpn($post)

Log::info("ipn post".json_encode($this->post));

if(empty($this->post)) return; //

if (! $this->postBack()) {
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@
<x-slot:toggle>
{{-- Dropdown Toggler --}}
<div class="flex items-center gap-[10px] cursor-pointer">
<img
src="{{ ! empty(core()->getCurrentLocale()->logo_url)
? core()->getCurrentLocale()->logo_url
: bagisto_asset('images/default-language.svg')
}}"
class="h-full"
alt="Default locale"
width="24"
height="16"
/>


<span>
{{ core()->getCurrentChannel()->locales()->orderBy('name')->where('code', app()->getLocale())->value('name') }}
Expand Down Expand Up @@ -73,11 +64,7 @@ class="flex items-center gap-[10px] px-5 py-2 text-[16px] cursor-pointer hover:b
:class="{'bg-gray-100': locale.code == '{{ app()->getLocale() }}'}"
@click="change(locale)"
>
<img
:src="locale.logo_url || '{{ bagisto_asset('images/default-language.svg') }}'"
width="24"
height="16"
/>


@{{ locale.name }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,7 @@ class="flex text-[16px] font-medium"
<x-slot:toggle>
{{-- Dropdown Toggler --}}
<div class="w-full flex gap-[10px] justify-between items-center cursor-pointer">
<img
src="{{ ! empty(core()->getCurrentLocale()->logo_url)
? core()->getCurrentLocale()->logo_url
: bagisto_asset('images/default-language.svg')
}}"
class="h-full"
alt="Default locale"
width="24"
height="16"
/>


<span>
{{ core()->getCurrentChannel()->locales()->orderBy('name')->where('code', app()->getLocale())->value('name') }}
Expand Down

0 comments on commit 5e36b31

Please sign in to comment.