openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 89682b98b7aa67f2d06016988fe5a14c0f58729c
parent 5cf75bc862d0a6e4f99671c6d4605a0163b988f0
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 19 Jul 2018 22:25:28 +0200

Es gibt kein $project mehr in der Sitzung, daher die Sprachen und Varianten über das Projekt laden.

Diffstat:
modules/cms-core/model/Page.class.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/cms-core/model/Page.class.php b/modules/cms-core/model/Page.class.php @@ -871,8 +871,9 @@ class Page extends BaseObject */ function realFilename() { - $this->withLanguage = config('publish','filename_language') == 'always' || Language::count() > 1; - $this->withModel = config('publish','filename_type' ) == 'always' || Model::count() > 1; + $project = new Project( $this->projectid ); + $this->withLanguage = config('publish','filename_language') == 'always' || count($project->getLanguageIds()) > 1; + $this->withModel = config('publish','filename_type' ) == 'always' || count($project->getModelIds() ) > 1; return $this->full_filename(); }