mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 20:08:23 +02:00
Couple of UI bugs fixed
This commit is contained in:
parent
92187934c2
commit
02ead21857
6 changed files with 24 additions and 22 deletions
|
@ -247,7 +247,6 @@ class SystemController extends Controller
|
|||
|
||||
$validators = [
|
||||
'extension' => v::stringType()->notEmpty()->length(3, 64),
|
||||
'tldType' => v::stringType()->notEmpty(),
|
||||
'script' => v::stringType()->notEmpty(),
|
||||
'createm0' => v::numericVal()->between(0.00, 9999999.99, true),
|
||||
'createm12' => v::numericVal()->between(0.00, 9999999.99, true),
|
||||
|
@ -879,8 +878,17 @@ class SystemController extends Controller
|
|||
$scriptName = 'Unknown'; // Default or fallback script name
|
||||
}
|
||||
|
||||
if (strpos(strtolower($tld['tld']), '.xn--') === 0) {
|
||||
$tld['tld'] = ltrim($tld['tld'], '.');
|
||||
$tld_u = '.'.idn_to_utf8($tld['tld'], 0, INTL_IDNA_VARIANT_UTS46);
|
||||
$tld['tld'] = '.'.$tld['tld'];
|
||||
} else {
|
||||
$tld_u = $tld['tld'];
|
||||
}
|
||||
|
||||
return view($response,'admin/system/manageTld.twig', [
|
||||
'tld' => $tld,
|
||||
'tld_u' => $tld_u,
|
||||
'scriptName' => $scriptName,
|
||||
'createPrices' => $createPrices,
|
||||
'renewPrices' => $renewPrices,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue