Set the stage reading mode in LeftAndMain

This commit is contained in:
Daniel Hensby 2014-08-26 11:09:03 +01:00 committed by Daniel Hensby
parent 106eb6e8a5
commit 24aaee984e

View File

@ -444,6 +444,9 @@ class LeftAndMain extends Controller implements PermissionProvider {
// The user's theme shouldn't affect the CMS, if, for example, they have
// replaced TableListField.ss or Form.ss.
Config::inst()->update('SSViewer', 'theme_enabled', false);
//set the reading mode for the admin to stage
Versioned::set_reading_mode('Stage');
}
public function handleRequest(SS_HTTPRequest $request, DataModel $model = null) {