mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1907 from silverstripe/pulls/4.0/content-controller-project
BUGFIX: ContentController still using global $project;
This commit is contained in:
commit
bed501c0fe
@ -10,6 +10,7 @@ use SilverStripe\Control\HTTPResponse;
|
||||
use SilverStripe\Control\HTTPResponse_Exception;
|
||||
use SilverStripe\Core\Convert;
|
||||
use SilverStripe\Core\Injector\Injector;
|
||||
use SilverStripe\Core\Manifest\ModuleManifest;
|
||||
use SilverStripe\i18n\i18n;
|
||||
use SilverStripe\ORM\ArrayList;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
@ -247,8 +248,7 @@ class ContentController extends Controller
|
||||
*/
|
||||
public function project()
|
||||
{
|
||||
global $project;
|
||||
return $project;
|
||||
return ModuleManifest::config()->get('project');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user