update basics to match code standards

global functions are not indented
This commit is contained in:
AD7six 2011-04-28 15:16:55 +02:00
parent 43a95a79fc
commit d861a73327

View file

@ -1,4 +1,5 @@
<?php
/**
* Basic Cake functionality.
*
@ -308,7 +309,29 @@ if (!function_exists('sortByKey')) {
} elseif ($count === 2) {
return '.' . $host;
} elseif ($count === 3) {
$gTLD = array('aero', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel', 'xxx');
$gTLD = array(
'aero',
'asia',
'biz',
'cat',
'com',
'coop',
'edu',
'gov',
'info',
'int',
'jobs',
'mil',
'mobi',
'museum',
'name',
'net',
'org',
'pro',
'tel',
'travel',
'xxx'
);
if (in_array($parts[1], $gTLD)) {
return '.' . $host;
}