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