diff --git a/system/autoload/Text.php b/system/autoload/Text.php index e11cfef9..f60b9621 100644 --- a/system/autoload/Text.php +++ b/system/autoload/Text.php @@ -110,6 +110,12 @@ class Text return $result; } + /** + * ...$data means it can take any number of arguments. + * it can url($var1, $var2, $var3) or url($var1) + * and variable will be merge with implode + * @return string the URL with all the arguments combined. + */ public static function url(...$data){ global $config; $url = implode("", $data); @@ -125,4 +131,14 @@ class Text return U . $url; } } + + // this will return & or ? + public static function isQA(){ + global $config; + if ($config['url_canonical'] == 'yes') { + return '?'; + } else { + return '&'; + } + } } diff --git a/ui/ui/admin/customers/add.tpl b/ui/ui/admin/customers/add.tpl index 73618f90..003a496f 100644 --- a/ui/ui/admin/customers/add.tpl +++ b/ui/ui/admin/customers/add.tpl @@ -1,6 +1,6 @@ {include file="sections/header.tpl"} -