Remove PATH_APP + PATH_BASE constants

This commit is contained in:
Samuel Georges 2015-02-07 15:43:49 +11:00
parent 8e1b4c2f68
commit 9dba058fe5
2 changed files with 3 additions and 3 deletions

View File

@ -279,7 +279,7 @@ class UpdateManager
*/
$modules = Config::get('cms.loadModules', []);
foreach ($modules as $module) {
$path = PATH_BASE . '/modules/'.strtolower($module).'/database/migrations';
$path = base_path() . '/modules/'.strtolower($module).'/database/migrations';
$this->migrator->requireFiles($path, $this->migrator->getMigrationFiles($path));
}
@ -323,7 +323,7 @@ class UpdateManager
*/
public function migrateModule($module)
{
$this->migrator->run(PATH_BASE . '/modules/'.strtolower($module).'/database/migrations');
$this->migrator->run(base_path() . '/modules/'.strtolower($module).'/database/migrations');
$this->note($module);
foreach ($this->migrator->getNotes() as $note) {

View File

@ -218,7 +218,7 @@ trait AssetMaker
foreach ($assetPath as $path) {
$_fileName = $path . '/' . $fileName;
if (File::isFile(PATH_BASE . '/' . $_fileName)) {
if (File::isFile(base_path() . '/' . $_fileName)) {
break;
}
}