Skip to content

Commit

Permalink
php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchray committed Apr 27, 2024
1 parent 2b5d4e1 commit 8913c1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion public/templates/js_globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
*/

use Ampache\Config\AmpConfig;
use Ampache\Module\Api\Ajax;
use Ampache\Module\Util\AjaxUriRetrieverInterface;
use Ampache\Repository\Model\Preference;

Expand Down
6 changes: 3 additions & 3 deletions public/templates/scripts.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
use Idleberg\ViteManifest\Manifest;

global $dic;
$web_path = (string)AmpConfig::get('web_path', '');
$environment = $dic->get(EnvironmentInterface::class);
$web_path = (string)AmpConfig::get('web_path', '');
$environment = $dic->get(EnvironmentInterface::class);
$manifest = __DIR__ . '/../dist/.vite/manifest.json';
$entrypoint = false;
if (file_exists($manifest )) {
if (file_exists($manifest)) {
$vm = new Manifest($manifest, "");
$entrypoint = $vm->getEntrypoint("src/js/main.js");
}
Expand Down

0 comments on commit 8913c1d

Please sign in to comment.