code/VersionedReadingMode.php
public static function restoreOriginalReadingMode()
    {
        if (
            isset(self::$originalReadingMode) &&
            in_array(self::$originalReadingMode, array('Stage', 'Live'))
        ) {
            Versioned::reading_stage(self::$originalReadingMode);
        }
    }
public static function restoreOriginalReadingMode()
    {
        if (
            isset(self::$originalReadingMode) &&
            in_array(self::$originalReadingMode, array('Stage', 'Live'))
        ) {
            Versioned::reading_stage(self::$originalReadingMode);
        }
    }
public static function restoreOriginalReadingMode ( ) { if ( isset ( self :: $ originalReadingMode ) && in_array ( self :: $ originalReadingMode , array ( 'Stage' , 'Live' ) ) ) { Versioned :: reading_stage ( self :: $ originalReadingMode ) ; } }
Restore the reading mode to what's been set originally in the CMS
Restore the reading mode to what s been set originally in the CMS