diff --git a/composer.json b/composer.json index e715cfc1..8ef2b56a 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,6 @@ }, "files": [ "Kiri.php", - "error.php", "function.php" ] } diff --git a/error.php b/error.php deleted file mode 100644 index 29b442d0..00000000 --- a/error.php +++ /dev/null @@ -1,31 +0,0 @@ - 'ok', - NO_AUTH => '' -]); - -if (!function_exists('message')) { - - /** - * @param $code - * @param $replace - * @param string $default - * @return mixed|string - */ - function message($code, $replace, $default = '') - { - if (!isset(ERROR_MESSAGES[$code])) { - if (!empty($default)) { - return $default; - } - return 'unknown error'; - } - return sprintf(ERROR_MESSAGES[$code], $replace); - } - - -}