1
0
mirror of https://github.com/flarum/core.git synced 2025-08-10 02:17:37 +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 d8b043dacb
commit 777579e146
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);
}
}