From 5ff71cf209c80298669b767d2fa15cbb74b24377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Thu, 15 Jul 2021 13:07:23 +0200 Subject: [PATCH] Api: Remove deprecated argument for run(). --- src/Api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api.php b/src/Api.php index 79f156d..277f2d4 100644 --- a/src/Api.php +++ b/src/Api.php @@ -74,9 +74,9 @@ public function getHtmlInit(string $route): string * 3. Loop all available data and count last modification date * 4. Render welcome information header + return minified haystack */ - public function run(string $path): void + public function run(): void { - if (preg_match('/^assets\/web-loader\/(.+?)(?:\?v=[0-9a-f]{6})?$/', $path, $parser)) { // 1. + if (preg_match('/^assets\/web-loader\/(.+?)(?:\?v=[0-9a-f]{6})?$/', Url::get()->getRelativeUrl(), $parser)) { // 1. if (preg_match( '/^global-(?[a-zA-Z0-9]+)\.(?[a-zA-Z0-9]+)$/', $parser[1],