s...@ull.at
unread,Jul 5, 2014, 5:18:29 AM7/5/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ullrigh...@googlegroups.com
Author: klemens
Date: 2014-07-05 11:18:27 +0200 (Sat, 05 Jul 2014)
New Revision: 4122
Modified:
trunk/plugins/ullCmsPlugin/modules/ullCms/lib/BaseUllCmsActions.class.php
Log:
ullCmsActions: refactored get object method for show action
Modified: trunk/plugins/ullCmsPlugin/modules/ullCms/lib/BaseUllCmsActions.class.php
===================================================================
--- trunk/plugins/ullCmsPlugin/modules/ullCms/lib/BaseUllCmsActions.class.php 2014-06-27 12:18:11 UTC (rev 4121)
+++ trunk/plugins/ullCmsPlugin/modules/ullCms/lib/BaseUllCmsActions.class.php 2014-07-05 09:18:27 UTC (rev 4122)
@@ -77,7 +77,8 @@
$this->getUriMemory()->setUri();
- $this->doc = $this->getRoute()->getObject();
+ $this->doc = $this->getObjectForShowAction();
+
$this->setVar('title', $this->doc->title);
$body = ullMetaWidgetContentElements::cleanMetaInfo($this->doc->body);
$this->setVar('body', $body, true);
@@ -101,7 +102,16 @@
$this->image_path = UllCmsPageTable::getImagePath();
}
+
/**
+ * Get object for the show action
+ */
+ protected function getObjectForShowAction()
+ {
+ return $this->getRoute()->getObject();
+ }
+
+ /**
* Define generator for list action
*
* @see plugins/ullCorePlugin/lib/BaseUllGeneratorActions#getListGenerator()