Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Using /storage for consistency with the non-module way of naming stor…
Browse files Browse the repository at this point in the history
…age classes.
  • Loading branch information
Sorck committed Feb 9, 2013
1 parent 2a07be9 commit 30f998b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/smCore/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function getModel($name)
}

/**
* Load and return a storage in this module's /Storages/ directory by name.
* Load and return a storage in this module's /Storage/ directory by name.
*
* @param string $name The name of the storage to load.
*
Expand All @@ -138,12 +138,12 @@ public function getStorage($name)
{
if (empty($this->_storages[$name]))
{
if (!file_exists($this->_directory . '/Storages/' . $name . '.php'))
if (!file_exists($this->_directory . '/Storage/' . $name . '.php'))
{
throw new Exception(array('exceptions.modules.invalid_storage', $name));
}

$storageClass = $this->_config['namespaces']['php'] . '\\Storages\\' . $name;
$storageClass = $this->_config['namespaces']['php'] . '\\Storage\\' . $name;
$this->_storages[$name] = new $storageClass($this->_app, $this);
}

Expand Down

0 comments on commit 30f998b

Please sign in to comment.