Changeset 814
- Timestamp:
- 08/14/07 16:27:48 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisProcessor.php
r813 r814 112 112 } 113 113 114 $result = $this->template->getParsedTemplate('frame'); 115 if (patErrorManager::isError($result) == true) { 116 $result = $result->getMessage(); 117 } 118 119 $this->response->write($result); 114 $this->response->write($this->template->getParsedTemplate('frame')); 120 115 } 121 116 … … 130 125 protected function processElement(stubPageElement $element, stubRequest $request, array $context) 131 126 { 132 if ($element->isAvailable($request, $this->session, $this->response, $context) == false) {127 if ($element->isAvailable($request, $this->session, $this->response, $context) === false) { 133 128 return ''; 134 129 } … … 172 167 { 173 168 $this->template->addGlobalVar('UCUO_FRAME', $this->getFrameId($page)); 174 $this->template->addGlobalVar(' SHOP_TITLE', $page->getProperty('title'));169 $this->template->addGlobalVar('PAGE_TITLE', $page->getProperty('title')); 175 170 $this->template->addGlobalVar('PAGE_NAME', $this->getPageName('memphis')); 176 171 $this->template->addGlobalVar('VARIANT', $this->session->getValue('net.stubbles.websites.variantmanager.variant', '')); trunk/src/main/php/net/stubbles/websites/memphis/stubMemphisTemplate.php
r813 r814 93 93 * @return mixed 94 94 * @throws stubIllegalAccessException 95 * @throws stubException 95 96 */ 96 97 public function __call($method, $arguments) 97 98 { 98 99 if (method_exists($this->template, $method) == true) { 99 return call_user_func_array(array($this->template, $method), $arguments); 100 $return = call_user_func_array(array($this->template, $method), $arguments); 101 if (patErrorManager::isError($return) == true) { 102 throw new stubException($return->getMessage()); 103 } 104 105 return $return; 100 106 } 101 107 102 throw new stubIllegalAccessException('Method patTemplate::' . $method . ' does not exist.'); 108 $backtrace = debug_backtrace(); 109 throw new stubIllegalAccessException('Method patTemplate::' . $method . ' called in ' . $backtrace[2]['class'] . '::' . $backtrace[2]['function'] . '() on line ' . $backtrace[2]['line'] . ' does not exist.'); 103 110 } 104 111 }
