fix core
views
: Fix empty extension pages, at least attempt to fix it.
This commit is contained in:
parent
e39edf1639
commit
61bb008137
2 changed files with 2 additions and 4 deletions
|
@ -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"
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue