Changeset 1631
- Timestamp:
- 06/19/08 10:20:45 (3 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/websites/xml/skin/stubDefaultSkinGenerator.php
r1623 r1631 12 12 'net::stubbles::lang::exceptions::stubRuntimeException', 13 13 'net::stubbles::websites::xml::skin::stubSkinGenerator', 14 'net::stubbles::xml::stubXMLException', 14 15 'net::stubbles::xml::stubXMLXIncludeStreamWrapper', 15 16 'net::stubbles::xml::stubXMLStreamWriterFactory', … … 191 192 * @param string $skinName 192 193 * @return DOMDocument 194 * @throws stubXMLException 193 195 */ 194 196 // @codeCoverageIgnoreStart 195 197 protected function createXMLSkinDocument($skinName) 196 198 { 197 return DOMDocument::load(stubConfig::getPagePath() . '/skin/' . $skinName . '.xml'); 199 $domDocument = DOMDocument::load(stubConfig::getPagePath() . '/skin/' . $skinName . '.xml'); 200 if (false === $domDocument) { 201 throw new stubXMLException('Invalid xml file ' . stubConfig::getPagePath() . '/skin/' . $skinName . '.xml'); 202 } 203 204 return $domDocument; 198 205 } 199 206 // @codeCoverageIgnoreEnd
