remove multiple spaces

This commit is contained in:
Ibnu Maksum 2024-02-21 11:54:22 +07:00
parent a44190c1c2
commit 702f2b443c
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 39 additions and 27 deletions

View File

@ -12,6 +12,7 @@ class Lang
{ {
global $_L, $lan_file, $config; global $_L, $lan_file, $config;
$_L = $_SESSION['Lang']; $_L = $_SESSION['Lang'];
$key = preg_replace('/\s+/', ' ', $key);
if (!empty($_L[$key])) { if (!empty($_L[$key])) {
return $_L[$key]; return $_L[$key];
} }

View File

@ -427,5 +427,16 @@
"Code": "Code", "Code": "Code",
"Send_To_Customer": "Send To Customer", "Send_To_Customer": "Send To Customer",
"Prev": "Prev", "Prev": "Prev",
"Voucher_Not_Found": "Voucher Not Found" "Voucher_Not_Found": "Voucher Not Found",
"Miscellaneous": "Miscellaneous",
"OTP_Required": "OTP Required",
"Change": "Change",
"Change_Phone_Number": "Change Phone Number",
"Current_Number": "Current Number",
"New_Number": "New Number",
"Input_your_phone_number": "Input your phone number",
"OTP": "OTP",
"Enter_OTP_that_was_sent_to_your_phone": "Enter OTP that was sent to your phone",
"Update": "Update",
"OTP_is_required_when_user_want_to_change_phone_number": "OTP is required when user want to change phone number"
} }

View File

@ -34,7 +34,7 @@
<textarea name="address" id="address" class="form-control">{$d['address']}</textarea> <textarea name="address" id="address" class="form-control">{$d['address']}</textarea>
</div> </div>
</div> </div>
{if $_c['allow_phone_otp'] == 'no'} {if $_c['allow_phone_otp'] != 'yes'}
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label> <label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
<div class="col-md-6"> <div class="col-md-6">
@ -46,7 +46,7 @@
</div> </div>
</div> </div>
</div> </div>
{elseif $_c['allow_phone_otp'] == 'yes'} {else}
<div class="form-group"> <div class="form-group">
<label class="col-md-2 control-label">{Lang::T('Phone Number')}</label> <label class="col-md-2 control-label">{Lang::T('Phone Number')}</label>
<div class="col-md-6"> <div class="col-md-6">
@ -72,8 +72,8 @@
<div class="form-group"> <div class="form-group">
<div class="col-lg-offset-2 col-lg-10"> <div class="col-lg-offset-2 col-lg-10">
<button class="btn btn-success waves-effect waves-light" type="submit">{Lang::T('Save <button class="btn btn-success waves-effect waves-light" type="submit">
Changes')}</button> {Lang::T('Save Changes')}</button>
Or <a href="{$_url}home">{Lang::T('Cancel')}</a> Or <a href="{$_url}home">{Lang::T('Cancel')}</a>
</div> </div>
</div> </div>