Changeset 262

Show
Ignore:
Timestamp:
02/14/07 17:30:55 (2 years ago)
Author:
mikey
Message:

renamed websites.pages to websites.memphis

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/websites/memphis/stubPageFactory.php

    r261 r262  
    3838    { 
    3939        if (null == self::$xmlParser) { 
    40             $tagParser = new DefinitionParser(array('http://stubbles.net/websites/pages' => $classLoader)); 
    41             $defs      = $tagParser->parse(stubFactory::getResourceURI('xjconf/pages.xml')); 
     40            $tagParser = new DefinitionParser(array('http://stubbles.net/websites/pages/memphis' => $classLoader)); 
     41            $defs      = $tagParser->parse(stubFactory::getResourceURI('xjconf/websites-memphis.xml')); 
    4242             
    4343            self::$xmlParser = new XmlParser(); 
     
    5858            self::$xmlParser->parse($configFile); 
    5959        } catch (XJConfException $xjce) { 
    60             throw new stubPageConfigurationException('Can not read page configuration from ' . $configFile, $xjce->getMessage()); 
     60            throw new stubPageConfigurationException('Can not read page configuration from ' . $configFile, $xjce); 
    6161        } 
    6262         
  • trunk/src/main/php/net/stubbles/websites/memphis/stubPageProcessor.php

    r260 r262  
    6969        if ($this->request->hasValue('page') == true) { 
    7070            $pageName = $this->request->getValidatedValue(new stubRegexValidator('[a-zA-Z0-9_'), 'page'); 
    71             if (null == $pageName || file_exists(stubConfig::getConfigPath() . '/xml/memphis/' . $pageName . '.xml') == false) { 
     71            if (null == $pageName || file_exists(stubConfig::getConfigPath() . '/xml/pages/memphis/' . $pageName . '.xml') == false) { 
    7272                $pageName = 'index'; 
    7373            } 
     
    7777         
    7878        try { 
    79             $page = $this->pageFactory->getPage(stubConfig::getConfigPath() . '/xml/memphis/' . $pageName . '.xml'); 
     79            $page = $this->pageFactory->getPage(stubConfig::getConfigPath() . '/xml/pages/memphis/' . $pageName . '.xml'); 
    8080        } catch (stubPageConfigurationException $pce) { 
    81             # create error response 
     81            $this->response->replaceData((string) $pce); 
    8282            return $this; 
    8383        }