Merge pull request #5008 from dhensby/pulls/modeladmin-reading-mode

Set the stage reading mode in LeftAndMain
This commit is contained in:
Damian Mooyman 2016-02-04 10:44:36 +13:00
commit 2f28154711

View File

@ -446,7 +446,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
Config::inst()->update('SSViewer', 'theme_enabled', false);
//set the reading mode for the admin to stage
Versioned::set_reading_mode('Stage');
Versioned::reading_stage('Stage');
}
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {