mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Merge pull request #1251 from tweichart/path_methods
minor change for getting the path
This commit is contained in:
commit
43d8a9d0e8
|
@ -49,7 +49,7 @@ class LessCompiler extends RevisionCompiler
|
||||||
'compress' => true,
|
'compress' => true,
|
||||||
'cache_dir' => $this->cachePath,
|
'cache_dir' => $this->cachePath,
|
||||||
'import_dirs' => [
|
'import_dirs' => [
|
||||||
base_path().'/vendor/components/font-awesome/less' => '',
|
base_path('vendor/components/font-awesome/less') => '',
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,7 @@ class MigrationCreator
|
||||||
*/
|
*/
|
||||||
protected function getMigrationPath($extension)
|
protected function getMigrationPath($extension)
|
||||||
{
|
{
|
||||||
$parent = $extension ? public_path().'/extensions/'.$extension : __DIR__.'/../..';
|
$parent = $extension ? public_path('extensions/'.$extension) : __DIR__.'/../..';
|
||||||
|
|
||||||
return $parent.'/migrations';
|
return $parent.'/migrations';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user