Skip to content

Commit

Permalink
Removing unused rootFolder section #247
Browse files Browse the repository at this point in the history
  • Loading branch information
dbellettini committed Feb 8, 2013
1 parent 06151ef commit 7a46a49
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/Universibo/Bundle/LegacyBundle/Framework/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,6 @@ public function setConfig( $configFile )

$this->config = & $config;

//Set $this->rootFolder
$this->_setRootFolder();

//Set $this->rootURL
$this->_setRootUrl();

Expand Down Expand Up @@ -457,24 +454,6 @@ private function _setErrorHandler()
$handlers->register();
}

/**
* Sets the RootFolder
*
* @access private
*/
public function _setRootFolder()
{
$elementsFolder = $this->config->getElementsByTagName('rootFolder');
if ($elementsFolder == NULL)
Error::throwError(_ERROR_CRITICAL,array('msg'=>'Non e` specificato l\'elemento rootFolder nel file di config','file'=>__FILE__,'line'=>__LINE__));
$elementFolderItem = $elementsFolder->item(0);
$elementFolderChild =& $elementFolderItem->firstChild;
$this->rootFolder = $elementFolderChild->nodeValue;
if(is_dir($this->rootFolder)) return;
else
Error::throwError(_ERROR_CRITICAL,array('msg'=>'rootFolder errata nel file di config','file'=>__FILE__,'line'=>__LINE__));
}

/**
* Sets the RootURL
*
Expand Down

0 comments on commit 7a46a49

Please sign in to comment.