From 8bb593bf3e56dc0f6cff711baaab487b34820ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 23 Feb 2022 17:15:53 +0800 Subject: [PATCH] modify plugin name --- composer.json | 1 - error.php | 31 ------------------------------- 2 files changed, 32 deletions(-) delete mode 100644 error.php 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); - } - - -}