1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 07:27:39 +02:00

Public and base directory can be separated (#938)

* Public and base directory can be separated

* Standards compliance for folders separation implementation
This commit is contained in:
Buhnici Alexandru
2016-04-23 05:25:53 +03:00
committed by Toby Zerner
parent 2229e0678b
commit 0e8e281f4b
5 changed files with 76 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ if (! function_exists('public_path')) {
*/
function public_path($path = '')
{
return app()->make('path.public').($path ? DIRECTORY_SEPARATOR.$path : $path);
return app()->publicPath().($path ? DIRECTORY_SEPARATOR.$path : $path);
}
}