Think about potentional ways to fix $blueprint in admin wrappers.

This commit is contained in:
purple 2023-09-07 22:11:58 +02:00
parent 09c2649936
commit 021d115578
2 changed files with 2 additions and 8 deletions

View file

@ -38,6 +38,7 @@ class ExtensionsController extends Controller
return $this->view->make('admin.extensions', [ return $this->view->make('admin.extensions', [
'version' => $this->version, 'version' => $this->version,
'bp' => $this->bp, 'bp' => $this->bp,
'blueprint' => $this->blueprint,
'root' => "/admin/extensions", 'root' => "/admin/extensions",
'onboarding' => $onboarding 'onboarding' => $onboarding

View file

@ -1,10 +1,3 @@
<?php
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Client\BlueprintClientLibrary as BlueprintExtensionLibrary;
public function __construct(
private BlueprintExtensionLibrary $blueprint
){}
// yes i know this is scuffed but trust me
?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
@ -176,7 +169,7 @@
<div class=\"notification\"> <div class=\"notification\">
<p>Blueprint has now been installed, click the extension icon to take a look.</p> <p>Blueprint has now been installed, click the extension icon to take a look.</p>
</div>"; </div>";
fileWipe("&bp.folder&/.blueprint/data/internal/db/onboarding"); $blueprint->fileWipe("&bp.folder&/.blueprint/data/internal/db/onboarding");
} }
$notification = $blueprint->dbGet("blueprint", "notification:text"); $notification = $blueprint->dbGet("blueprint", "notification:text");