diff --git a/src/base/Widget.php b/src/base/Widget.php index 7b18a14bb4a..d4fd9e46733 100644 --- a/src/base/Widget.php +++ b/src/base/Widget.php @@ -91,7 +91,7 @@ public function getTitle(): string */ public function getBodyHtml() { - $url = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/cp/dist', true, 'images/prg.jpg'); + $url = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/cp/dist', false, 'images/prg.jpg'); return << diff --git a/src/controllers/AppController.php b/src/controllers/AppController.php index c8ab52ad4ff..a8644e7c8f3 100644 --- a/src/controllers/AppController.php +++ b/src/controllers/AppController.php @@ -323,7 +323,7 @@ public function actionGetPluginLicenseInfo(): Response $licenseInfo = Craft::$app->getApi()->getLicenseInfo(['plugins']); $result = []; if (!empty($licenseInfo['pluginLicenses'])) { - $defaultIconUrl = Craft::$app->getAssetManager()->getPublishedUrl('@app/icons/default-plugin.svg', true); + $defaultIconUrl = Craft::$app->getAssetManager()->getPublishedUrl('@app/icons/default-plugin.svg'); foreach ($licenseInfo['pluginLicenses'] as $pluginLicenseInfo) { if (isset($pluginLicenseInfo['plugin'])) { $pluginInfo = $pluginLicenseInfo['plugin']; diff --git a/src/controllers/AssetsController.php b/src/controllers/AssetsController.php index c7f280c2b5a..c8793636177 100644 --- a/src/controllers/AssetsController.php +++ b/src/controllers/AssetsController.php @@ -921,7 +921,7 @@ public function actionPreviewFile(): Response $imageUrl = $asset->getUrl(); } else { $source = $asset->getTransformSource(); - $imageUrl = Craft::$app->getAssetManager()->getPublishedUrl($source, true); + $imageUrl = Craft::$app->getAssetManager()->getPublishedUrl($source); } $width = $asset->getWidth(); diff --git a/src/controllers/PluginStoreController.php b/src/controllers/PluginStoreController.php index e02d353e2b0..df400b61384 100644 --- a/src/controllers/PluginStoreController.php +++ b/src/controllers/PluginStoreController.php @@ -268,8 +268,8 @@ public function actionCraftData(): Response $data['CraftPro'] = Craft::Pro; // Logos - $data['craftLogo'] = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/pluginstore/dist/', true, 'images/craft.svg'); - $data['poweredByStripe'] = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/pluginstore/dist/', true, 'images/powered_by_stripe.svg'); + $data['craftLogo'] = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/pluginstore/dist/', false, 'images/craft.svg'); + $data['poweredByStripe'] = Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/pluginstore/dist/', false, 'images/powered_by_stripe.svg'); return $this->asJson($data); } diff --git a/src/elements/User.php b/src/elements/User.php index d19eef06c92..5a3752e8855 100644 --- a/src/elements/User.php +++ b/src/elements/User.php @@ -976,7 +976,7 @@ public function getThumbUrl(int $size) return Craft::$app->getAssets()->getThumbUrl($photo, $size, $size, false); } - return Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/cp/dist', true, 'images/user.svg'); + return Craft::$app->getAssetManager()->getPublishedUrl('@app/web/assets/cp/dist', false, 'images/user.svg'); } /** diff --git a/src/services/Assets.php b/src/services/Assets.php index 4917f452147..8df8ee15233 100644 --- a/src/services/Assets.php +++ b/src/services/Assets.php @@ -632,7 +632,7 @@ public function getThumbUrl(Asset $asset, int $width, int $height = null, bool $ // Publish the thumb directory (if necessary) and return the thumb's published URL $dir = dirname($path); $name = pathinfo($path, PATHINFO_BASENAME); - return Craft::$app->getAssetManager()->getPublishedUrl($dir, true, $name); + return Craft::$app->getAssetManager()->getPublishedUrl($dir, false, $name); } /** diff --git a/src/web/twig/variables/Rebrand.php b/src/web/twig/variables/Rebrand.php index 412dec4a113..ba85f910935 100644 --- a/src/web/twig/variables/Rebrand.php +++ b/src/web/twig/variables/Rebrand.php @@ -104,7 +104,7 @@ public function getImageVariable(string $type) $path = $this->_getImagePath($type); if ($path !== false) { - $url = Craft::$app->getAssetManager()->getPublishedUrl($path, true); + $url = Craft::$app->getAssetManager()->getPublishedUrl($path); $this->_imageVariables[$type] = new Image($path, $url); } else { $this->_imageVariables[$type] = false;