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" \
"$AdminBladeConstructor"
fi
echo -e "\n@endsection" >> "$AdminBladeConstructor"
echo -e "\n@endsection\n@yield('extension.script')" >> "$AdminBladeConstructor"
# Construct admin route
sed -i "s~\[id\]~$identifier~g" "$AdminRouteConstructor"

View file

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