BUGFIX: ContentController still using global $project;

This commit is contained in:
Aaron Carlino 2017-07-21 09:56:41 +12:00 committed by GitHub
parent e38a0c49dd
commit cc6b44223e

View File

@ -10,6 +10,7 @@ use SilverStripe\Control\HTTPResponse;
use SilverStripe\Control\HTTPResponse_Exception; use SilverStripe\Control\HTTPResponse_Exception;
use SilverStripe\Core\Convert; use SilverStripe\Core\Convert;
use SilverStripe\Core\Injector\Injector; use SilverStripe\Core\Injector\Injector;
use SilverStripe\Core\Manifest\ModuleManifest;
use SilverStripe\i18n\i18n; use SilverStripe\i18n\i18n;
use SilverStripe\ORM\ArrayList; use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataObject; use SilverStripe\ORM\DataObject;
@ -247,8 +248,7 @@ class ContentController extends Controller
*/ */
public function project() public function project()
{ {
global $project; return ModuleManifest::config()->get('project');
return $project;
} }
/** /**