commit 4d23bb3bd9a73f1a9c2df729c090da9c880369e4 parent f829444b100a147f4ad52a63069e6124d08b6a09 Author: dankert <devnull@localhost> Date: Thu, 9 Sep 2010 21:34:03 +0200 Fix: Korrekten Dateinamen in Quelltextvorschau erzeugen. Diffstat:
actionClasses/PageAction.class.php | | | 13 | +++++++++++-- |
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/actionClasses/PageAction.class.php b/actionClasses/PageAction.class.php @@ -657,9 +657,18 @@ class PageAction extends ObjectAction */ function src() { - $this->page->public = true; + $language = Session::getProjectLanguage(); + $model = Session::getProjectModel(); + + $this->page->languageid = $language->languageid; + $this->page->modelid = $model->modelid; + + $this->page->withLanguage = config('publish','filename_language') == 'always' || count(Language::count()) > 1; + $this->page->withModel = config('publish','filename_type' ) == 'always' || count(Model::count() ) > 1; + + $this->page->public = true; $this->page->load(); - + $src = $this->page->generate(); // HTML Highlighting