Bug #17298 » 5611_4.2.patch
t3lib/class.t3lib_page.php (working copy) | ||
---|---|---|
var $sys_language_uid = 0;
|
||
// Versioning preview related:
|
||
var $versioningPreview = FALSE; // If true, preview of other record versions is allowed. THIS MUST ONLY BE SET IF the page is not cached and truely previewed by a backend user!!!
|
||
var $versioningPreview = FALSE; // If true, versioning preview of other record versions is allowed. THIS MUST ONLY BE SET IF the page is not cached and truely previewed by a backend user!!!
|
||
var $versioningWorkspaceId = 0; // Workspace ID for preview
|
||
var $workspaceCache = array();
|
||
... | ... | |
// Filter out new/deleted place-holder pages in case we are NOT in a versioning preview (that means we are online!)
|
||
if (!$this->versioningPreview) {
|
||
$this->where_hid_del.= ' AND NOT(pages.t3ver_state>0)';
|
||
$this->where_hid_del.= ' AND NOT (pages.t3ver_state>0)';
|
||
} else {
|
||
// For version previewing, make sure that enable-fields are not de-selecting hidden pages - we need versionOL() to unset them only if the overlay record instructs us to.
|
||
$this->versioningPreview_where_hid_del = $this->where_hid_del; // Copy where_hid_del to other variable (used in relation to versionOL())
|
typo3/sysext/cms/tslib/class.tslib_fe.php (working copy) | ||
---|---|---|
// Initialize the page-select functions.
|
||
$this->sys_page = t3lib_div::makeInstance('t3lib_pageSelect');
|
||
$this->sys_page->versioningPreview = $this->fePreview ? TRUE : FALSE;
|
||
$this->sys_page->versioningPreview = (t3lib_div::_GP('ADMCMD_view') || intval($this->workspacePreview)) ? TRUE : FALSE;
|
||
$this->sys_page->versioningWorkspaceId = $this->whichWorkspace();
|
||
$this->sys_page->init($this->showHiddenPage);
|
||
... | ... | |
function workspacePreviewInit() {
|
||
$previewWS = t3lib_div::_GP('ADMCMD_previewWS');
|
||
if ($this->beUserLogin && is_object($GLOBALS['BE_USER']) && t3lib_div::testInt($previewWS)) {
|
||
if ($previewWS>=-1 && ($previewWS==0 || $GLOBALS['BE_USER']->checkWorkspace($previewWS))) { // Check Access to workspace. Live (0) is OK to preview for all.
|
||
if ($previewWS==0 || ($previewWS>=-1 && $GLOBALS['BE_USER']->checkWorkspace($previewWS))) { // Check Access to workspace. Live (0) is OK to preview for all.
|
||
$this->workspacePreview = intval($previewWS);
|
||
} else {
|
||
$this->workspacePreview = -99; // No preview, will default to "Live" at the moment
|
- « Previous
- 1
- 2
- 3
- 4
- Next »