From 1d1d8da431ec0f63b38685ef0e911603dcf7a804 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 7 Jan 2025 14:53:09 +0100 Subject: [PATCH 1/3] fix: twig filter `exif_read_data` throws critical error (#3878) --- system/src/Grav/Common/Twig/Extension/FilesystemExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php b/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php index 73b49a795..2eee837b2 100644 --- a/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php +++ b/system/src/Grav/Common/Twig/Extension/FilesystemExtension.php @@ -272,13 +272,13 @@ class FilesystemExtension extends AbstractExtension * @param bool $read_thumbnail * @return array|false */ - public function exif_read_data($filename, ?string $required_sections, bool $as_arrays = false, bool $read_thumbnail = false) + public function exif_read_data($filename, ?string $required_sections = null, bool $as_arrays = false, bool $read_thumbnail = false) { if (!Utils::functionExists('exif_read_data') || !$this->checkFilename($filename)) { return false; } - return exif_read_data($filename, $required_sections, $as_arrays, $read_thumbnail); + return @exif_read_data($filename, $required_sections, $as_arrays, $read_thumbnail); } /** From 7e723eb7f57414e8236ccd08804895d75a827990 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 13 Jan 2025 12:30:17 +0000 Subject: [PATCH 2/3] actions/cache@v4 cache for tests Signed-off-by: Andy Miller --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 57101de92..f054bc25b 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -44,7 +44,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} From 2620e836d4ac0ad495173efdfe98d0a2db94f92c Mon Sep 17 00:00:00 2001 From: Olivier Dolbeau Date: Sat, 18 Jan 2025 13:39:11 +0100 Subject: [PATCH 3/3] Update code blocks in README (#3886) --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index f16f62b4e..359458d5f 100644 --- a/README.md +++ b/README.md @@ -39,22 +39,22 @@ You can download a **ready-built** package from the [Downloads page on https://g You can create a new project with the latest **stable** Grav release with the following command: -``` -$ composer create-project getgrav/grav ~/webroot/grav +```bash +composer create-project getgrav/grav ~/webroot/grav ``` ### From GitHub 1. Clone the Grav repository from [https://github.com/getgrav/grav]() to a folder in the webroot of your server, e.g. `~/webroot/grav`. Launch a **terminal** or **console** and navigate to the webroot folder: - ``` - $ cd ~/webroot - $ git clone https://github.com/getgrav/grav.git + ```bash + cd ~/webroot + git clone https://github.com/getgrav/grav.git ``` 2. Install the **plugin** and **theme dependencies** by using the [Grav CLI application](https://learn.getgrav.org/advanced/grav-cli) `bin/grav`: - ``` - $ cd ~/webroot/grav - $ bin/grav install + ```bash + cd ~/webroot/grav + bin/grav install ``` Check out the [install procedures](https://learn.getgrav.org/basics/installation) for more information. @@ -63,28 +63,28 @@ Check out the [install procedures](https://learn.getgrav.org/basics/installation You can download [plugins](https://getgrav.org/downloads/plugins) or [themes](https://getgrav.org/downloads/themes) manually from the appropriate tab on the [Downloads page on https://getgrav.org](https://getgrav.org/downloads), but the preferred solution is to use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: -``` -$ bin/gpm index +```bash +bin/gpm index ``` This will display all the available plugins and then you can install one or more with: -``` -$ bin/gpm install +```bash +bin/gpm install ``` # Updating To update Grav you should use the [Grav Package Manager](https://learn.getgrav.org/advanced/grav-gpm) or `GPM`: -``` -$ bin/gpm selfupgrade +```bash +bin/gpm selfupgrade ``` To update plugins and themes: -``` -$ bin/gpm update +```bash +bin/gpm update ``` ## Upgrading from older version