diff --git a/app/Console/Commands/InfoCommand.php b/app/Console/Commands/InfoCommand.php index 7ee140a1f..80e9d23d3 100644 --- a/app/Console/Commands/InfoCommand.php +++ b/app/Console/Commands/InfoCommand.php @@ -73,7 +73,6 @@ class InfoCommand extends Command ['Queue Driver', $this->config->get('queue.default')], ['Session Driver', $this->config->get('session.driver')], ['Filesystem Driver', $this->config->get('filesystems.default')], - ['Default Theme', $this->config->get('themes.active')], ['Proxies', $this->config->get('trustedproxies.proxies')], ], 'compact'); diff --git a/app/Extensions/Facades/Theme.php b/app/Extensions/Facades/Theme.php deleted file mode 100644 index 69e8e0dac..000000000 --- a/app/Extensions/Facades/Theme.php +++ /dev/null @@ -1,16 +0,0 @@ -' . PHP_EOL, $this->getUrl($path)); - } - - public function css($path) - { - return sprintf('' . PHP_EOL, $this->getUrl($path)); - } - - protected function getUrl($path) - { - return '/themes/pterodactyl/' . ltrim($path, '/'); - } -} diff --git a/app/Helpers/Utilities.php b/app/Helpers/Utilities.php index d6b4e752f..8379a3d8c 100644 --- a/app/Helpers/Utilities.php +++ b/app/Helpers/Utilities.php @@ -51,20 +51,4 @@ class Utilities sprintf('%s %s %s * %s', $minute, $hour, $dayOfMonth, $dayOfWeek) )->getNextRunDate()); } - - /** - * @param string $name - * @param mixed $default - * @return string - */ - public static function checked(string $name, $default) - { - $errors = session('errors'); - - if (isset($errors) && $errors instanceof ViewErrorBag && $errors->any()) { - return old($name) ? 'checked' : ''; - } - - return ($default) ? 'checked' : ''; - } } diff --git a/config/app.php b/config/app.php index f57036f95..ddb301b65 100644 --- a/config/app.php +++ b/config/app.php @@ -234,7 +234,6 @@ return [ 'Schema' => Illuminate\Support\Facades\Schema::class, 'Session' => Illuminate\Support\Facades\Session::class, 'Storage' => Illuminate\Support\Facades\Storage::class, - 'Theme' => Pterodactyl\Extensions\Facades\Theme::class, 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class,