Commit aced4b0d23a739c1db637467a4a3950fc8e7563b

Authored by nbm
1 parent 6b0c6bfa

Document publication has always been broken - remove it entirely.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4094 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktcore/KTDocumentActions.php
... ... @@ -544,43 +544,6 @@ class KTDocumentDependentAction extends KTBuiltInDocumentAction {
544 544 }
545 545 $oKTActionRegistry->registerAction('documentaction', 'KTDocumentDependentAction', 'ktcore.actions.document.dependent');
546 546  
547   -
548   -class KTDocumentPublishAction extends KTDocumentAction {
549   - var $_sDisablePermission = "ktcore.permissions.write";
550   - var $sDisplayName = 'Publish';
551   - var $sName = 'ktcore.actions.document.publish';
552   -
553   - function _disable() {
554   - if ($this->oDocument->getIsCheckedOut()) {
555   - $this->_sDisabledText = _("This document is checked out and cannot be archived.");
556   - return true;
557   - }
558   - /*
559   - if (DocumentCollaboration::documentIsPublished($oDocument->getID())) {
560   - $this->_sDisabledText = _("This document is already published.");
561   - return true;
562   - }
563   - if (DocumentCollaboration::documentIsPendingWebPublishing($oDocument->getID())) {
564   - $this->_sDisabledText = _("This document has been marked as pending publishing and the web publisher has been notified.");
565   - return true;
566   - }
567   - if ($oDocument->hasCollaboration()) {
568   - if (!DocumentCollaboration::documentCollaborationDone($oDocument->getID())) {
569   - $this->_sDisabledText = _("You cannot publish this document until collaboration is complete");
570   - return true;
571   - }
572   - }
573   - */
574   - return parent::_disable();
575   - }
576   -
577   - function getURL() {
578   - return sprintf("/control.php?action=%s&fDocumentID=%d&fForPublish=1", 'viewDocument', $this->oDocument->getID(), $this->oDocument->getID());
579   - }
580   -
581   -}
582   -$oKTActionRegistry->registerAction('documentaction', 'KTDocumentPublishAction', 'ktcore.actions.document.publish');
583   -
584 547 class KTDocumentPermissionsAction extends KTBuiltInDocumentAction {
585 548 var $sBuiltInAction = 'editDocumentPermissions';
586 549 var $sDisplayName = 'Permissions';
... ...