Ubuntu-Basis auf 24.04 pinnen (PHP2Shell-Fix, Kirby 4 braucht PHP <= 8.4)
ubuntu:latest ist inzwischen 26.04 mit PHP 8.5, das Kirby 4.6 nicht unterstuetzt. 24.04 liefert php8.3 8.3.6-0ubuntu0.24.04.13 mit dem Fix fuer CVE-2026-109618/-109619. Image neu bauen mit --pull. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+23
-23
@@ -1,23 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Page models extend Kirby's default page object.
|
||||
*
|
||||
* In page models you can define methods that are then available
|
||||
* everywhere in Kirby where you call a page of the extended type.
|
||||
*
|
||||
* In this example, we define the cover method that either returns
|
||||
* an image selected in the cover field or the first image in the folder.
|
||||
*
|
||||
* You can see the method in use in the `home.php` and `photography.php` templates
|
||||
* and in the `site/blueprints/sections/albums.yml` image query
|
||||
*
|
||||
* More about models: https://getkirby.com/docs/guide/templates/page-models
|
||||
*/
|
||||
class AlbumPage extends Page
|
||||
{
|
||||
public function cover()
|
||||
{
|
||||
return $this->content()->get('cover')->toFile() ?? $this->image();
|
||||
}
|
||||
}
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Page models extend Kirby's default page object.
|
||||
*
|
||||
* In page models you can define methods that are then available
|
||||
* everywhere in Kirby where you call a page of the extended type.
|
||||
*
|
||||
* In this example, we define the cover method that either returns
|
||||
* an image selected in the cover field or the first image in the folder.
|
||||
*
|
||||
* You can see the method in use in the `home.php` and `photography.php` templates
|
||||
* and in the `site/blueprints/sections/albums.yml` image query
|
||||
*
|
||||
* More about models: https://getkirby.com/docs/guide/templates/page-models
|
||||
*/
|
||||
class AlbumPage extends Page
|
||||
{
|
||||
public function cover()
|
||||
{
|
||||
return $this->content()->get('cover')->toFile() ?? $this->image();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user