fix core views: Fix empty extension pages, at least attempt to fix it.

This commit is contained in:
purple 2024-04-10 10:55:56 +02:00
parent e39edf1639
commit 61bb008137
2 changed files with 2 additions and 4 deletions

View file

@ -1218,7 +1218,7 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) || ( $2 == "-add" ) ]]; then VCMD="
-e "s~\[webicon\]~$websiteiconclass~g" \ -e "s~\[webicon\]~$websiteiconclass~g" \
"$AdminBladeConstructor" "$AdminBladeConstructor"
fi fi
echo -e "\n@endsection" >> "$AdminBladeConstructor" echo -e "\n@endsection\n@yield('extension.script')" >> "$AdminBladeConstructor"
# Construct admin route # Construct admin route
sed -i "s~\[id\]~$identifier~g" "$AdminRouteConstructor" sed -i "s~\[id\]~$identifier~g" "$AdminRouteConstructor"

View file

@ -23,9 +23,7 @@
@section("extension.config") @section("extension.config")
<?php <?php
use Pterodactyl\Models\Egg; use Pterodactyl\Models\Egg;
echo("use Pterodactyl\Models\Egg;");
$eggs = Egg::all(); $eggs = Egg::all();
echo('$eggs = Egg::all();');
?> ?>
<div class="modal fade" id="extensionConfigModal" tabindex="-1" role="dialog"> <div class="modal fade" id="extensionConfigModal" tabindex="-1" role="dialog">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
@ -95,7 +93,7 @@
</div> </div>
@endsection @endsection
@section('footer-scripts') @section('extension.script')
@parent @parent
<script> <script>
$('.pOptions').select2(); $('.pOptions').select2();