Skip to content

Commit

Permalink
Remove unused alert_no_search_query lang string
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 10, 2024
1 parent bd8d9ce commit b7e7764
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion resources/lang/en/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
'alert_option_selected' => 'The number of selected options for <b>%s</b> must be between %s and %s.',
'alert_qty_is_invalid' => 'Selected quantity is not divisive by the minimum quantity of %s.',
'alert_qty_is_below_min_qty' => 'Selected quantity is below the menu\'s minimum quantity of %s.',
'alert_no_search_query' => 'Please type in a postcode/address to check if we can deliver to you.',
'alert_location_closed' => 'Sorry, you can\'t place an order now, we are currently closed,<br /> please come back later during our opening times.',
'alert_min_delivery_order_total' => 'Order total is below the %s minimum order total. <br />You need to spend more to order.',
'alert_min_order_total' => 'Order total is below the %s minimum order total. <br />You need to spend more to order.',
Expand Down
2 changes: 1 addition & 1 deletion src/Classes/CartManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function validateLocation()
}

if ($this->location->orderTypeIsDelivery() && $this->location->requiresUserPosition() && !$this->location->userPosition()->isValid()) {
throw new ApplicationException(lang('igniter.cart::default.alert_no_search_query'));
throw new ApplicationException(lang('igniter.local::default.alert_no_search_query'));
}
}

Expand Down

0 comments on commit b7e7764

Please sign in to comment.