Lines Matching +full:cannot +full:approve +full:a +full:non +full:- +full:existing +full:revision +(+path:plugin +path:publish) -(+path:plugin +path:publish +path:lang)
13 $this->helper = plugin_load('helper', 'publish');
17 … $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_io_write', array());
18 $controller->register_hook('AJAX_CALL_UNKNOWN', 'BEFORE', $this, 'approveNS', array());
22 if ($event->data !== 'plugin_publish_approveNS') {
26 $event->stopPropagation();
27 $event->preventDefault();
30 global $INPUT; //available since release 2012-10-13 "Adora Belle"
31 $namespace = $INPUT->str('namespace');
32 $pages = $this->helper->getPagesFromNamespace($namespace);
33 $pages = $this->helper->removeSubnamespacePages($pages, $namespace);
40 if (!$this->helper->canApprove()) {
43 $this->addApproval();
60 if (!$INPUT->has('publish_approve')) {
64 if (!$this->helper->canApprove()) {
65 msg($this->getLang('wrong permissions to approve'), -1);
69 $this->addApproval();
70 send_redirect(wl($ID, array('rev' => $this->helper->getRevision()), true, '&'));
79 msg($this->getLang('cannot approve a non-existing revision'), -1);
83 $approvalRevision = $this->helper->getRevision();
84 $approvals = $this->helper->getApprovals();
99 msg($this->getLang('version approved'), 1);
106 …if ($this->getConf('send_mail_on_approve') && $this->helper->isRevisionApproved($approvalRevision)…
109 $mail->send_approve_mail();
113 msg($this->getLang('cannot approve error'), -1);