mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Set the stage reading mode in LeftAndMain
This commit is contained in:
parent
eaf9d32bc7
commit
316d5ef967
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user