Fixes issue when routing to CmsController homepage (no params)

Fixes https://github.com/rainlab/translate-plugin/issues/67
Fixes https://github.com/rainlab/translate-plugin/pull/68
This commit is contained in:
Samuel Georges 2015-05-02 12:56:40 +10:00
parent 12d92dd715
commit e6e0facaa0
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ class CmsController extends ControllerBase
* If the parameter is omitted, the current URL used.
* @return string Returns the processed page content.
*/
public function run($url = null)
public function run($url = '/')
{
return App::make('Cms\Classes\Controller')->run($url);
}