fix: add support for Vegvisir 3.5.0 (#11)

Vegvisir 3.5.0 introduced a new static method for echoing the page shell element

Reviewed-on: https://codeberg.org/vegvisir/install/pulls/11
This commit is contained in:
Victor Westerlund 2026-01-17 21:54:09 +01:00
parent 3af40f71be
commit 9c4da9fc0a

View file

@ -50,7 +50,7 @@ install_vegvisir() {
# Update submodules # Update submodules
git submodule update --init --recursive git submodule update --init --recursive
fi fi
# Install dependencies with composer # Install dependencies with composer
(cd vegvisir && composer install --classmap-authoritative) (cd vegvisir && composer install --classmap-authoritative)
@ -99,7 +99,7 @@ configure_vegvisir() {
"public_path = 'public/'" "public_path = 'public/'"
"rfc_4288_url = 'http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types'" "rfc_4288_url = 'http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types'"
) )
for line in "${config[@]}" ; do for line in "${config[@]}" ; do
echo "${line}" >> vegvisir/.env.ini echo "${line}" >> vegvisir/.env.ini
done done
@ -122,7 +122,7 @@ generate_example_website() {
"<body>" "<body>"
" <?php // Replace this comment with elements you wish to keep loaded between pages ?>" " <?php // Replace this comment with elements you wish to keep loaded between pages ?>"
" " " "
" <vv-shell></vv-shell>" " <?= VV::shell() ?>"
" " " "
" <?= VV::init() ?>" " <?= VV::init() ?>"
"</body>" "</body>"
@ -236,4 +236,4 @@ if [[ "$choice" == "y" || "$choice" == "Y" ]] ; then
main main
else else
echo "Installation aborted." echo "Installation aborted."
fi fi