public function ajaxReadAction() { if ($this->getRequest()->isXmlHttpRequest() || $this->getRequest()->issetQuery('popup')) { // $this->noLayout(true); } else { $this->forward('pages', 'read'); } $pageIDs = explode('_', $this->getRequest()->getRequest('page_id')); $pageID = end($pageIDs); $this->view->page = Model_Pages::getPage($pageID); if (!$this->view->page) { $this->forward('error', 'error404'); } $model_images = new Helper_Images(); $this->view->page['description'] = html_entity_decode($this->view->page['description'], ENT_QUOTES, 'utf-8'); if (JO_Registry::get('config_fix_image_thumb_editor')) { $this->view->page['description'] = $model_images->fixEditorText($this->view->page['description']); } if (JO_Registry::get('config_fix_external_urls')) { $this->view->page['description'] = $this->fixUrl($this->view->page['description']); } $this->view->full_url = WM_Router::create($this->getRequest()->getBaseUrl() . '?controller=pages&action=read&page_id=' . $pageID); }