diff options
author | Florian Pritz <bluewind@xinu.at> | 2016-09-27 19:08:30 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2016-11-01 17:29:04 +0100 |
commit | 39ec7b56cd022c125c44ca4acc33f8290f92731e (patch) | |
tree | f6bf0f46840f3c95f16928f4e1f9418d3b21953f /application/helpers | |
parent | 554b2875114cc00d48b0820a7b01549102912ffe (diff) |
Rename is_cli_client to is_api_client
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/helpers')
-rw-r--r-- | application/helpers/filebin_helper.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/application/helpers/filebin_helper.php b/application/helpers/filebin_helper.php index 81f330f68..093f7a8bd 100644 --- a/application/helpers/filebin_helper.php +++ b/application/helpers/filebin_helper.php @@ -84,18 +84,18 @@ function mb_str_pad($ps_input, $pn_pad_length, $ps_pad_string = " ", $pn_pad_typ return $ret; } -function is_cli_client($override = null) +function is_api_client($override = null) { - static $is_cli = null; + static $is_api = null; if ($override !== null) { - $is_cli = $override; + $is_api = $override; } - if ($is_cli === null) { - $is_cli = false; + if ($is_api === null) { + $is_api = false; } - return $is_cli; + return $is_api; } function random_alphanum($min_length, $max_length = null) @@ -268,7 +268,7 @@ function stateful_client() return false; } - if (is_cli_client()) { + if (is_api_client()) { return false; } |