[BUGFIX] Wrong CGL style of boolean values
authorOliver Hader <oliver@typo3.org>
Tue, 12 Jul 2011 11:48:34 +0000 (13:48 +0200)
committerOliver Hader <oliver@typo3.org>
Tue, 12 Jul 2011 11:52:45 +0000 (13:52 +0200)
Change-Id: I0498a6fde4eb7cfb2115362fb6955d460a10fd6a

typo3/sysext/workspaces/Classes/Controller/PreviewController.php
typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php
typo3/sysext/workspaces/Classes/Service/Stages.php

index f0c5bfa..2f9d7dd 100644 (file)
@@ -79,7 +79,7 @@ class Tx_Workspaces_Controller_PreviewController extends Tx_Workspaces_Controlle
         *
         * @return void
         */
-       public function indexAction($previewWS = null) {
+       public function indexAction($previewWS = NULL) {
                // @todo language doesn't always come throught the L parameter
                // @todo Evaluate how the intval() call can be used with Extbase validators/filters
                $language = intval(t3lib_div::_GP('L'));
index b660548..793067a 100644 (file)
@@ -240,7 +240,7 @@ class tx_Workspaces_ExtDirect_ActionHandler extends tx_Workspaces_ExtDirect_Abst
                if (intval($notification_mode) === Tx_Workspaces_Service_Stages::MODE_NOTIFY_ALL || intval($notification_mode) === Tx_Workspaces_Service_Stages::MODE_NOTIFY_ALL_STRICT) {
                                // get the default recipients from the stage configuration
                                // the default recipients needs to be added in some cases of the notification_mode
-                       $default_recipients = $this->getStageService()->getResponsibleBeUser($stageId, true);
+                       $default_recipients = $this->getStageService()->getResponsibleBeUser($stageId, TRUE);
                        foreach ($default_recipients as $default_recipient_uid => $default_recipient_record) {
                                if (!in_array($default_recipient_record['email'],$recipients)) {
                                        $recipients[] = $default_recipient_record['email'];
@@ -458,7 +458,7 @@ class tx_Workspaces_ExtDirect_ActionHandler extends tx_Workspaces_ExtDirect_Abst
                                                'itemCls' => 'x-check-group-alt',
                                                'columns' => 1,
                                                'style' => 'max-height: 200px',
-                                               'autoScroll' => true,
+                                               'autoScroll' => TRUE,
                                                'items' => array(
                                                        $this->getReceipientsOfStage($nextStageId)
                                                )
@@ -493,7 +493,7 @@ class tx_Workspaces_ExtDirect_ActionHandler extends tx_Workspaces_ExtDirect_Abst
                $result = array();
 
                $recipients = $this->getStageService()->getResponsibleBeUser($stage);
-               $default_recipients = $this->getStageService()->getResponsibleBeUser($stage, true);
+               $default_recipients = $this->getStageService()->getResponsibleBeUser($stage, TRUE);
 
                foreach ($recipients as $id => $user) {
                        if (t3lib_div::validEmail($user['email'])) {
index 0c54f53..9fee5dd 100644 (file)
@@ -386,14 +386,14 @@ class Tx_Workspaces_Service_Stages {
         * @param       boolean if field notification_defaults should be selected instead of responsible users
         * @return      array be_users with e-mail and name
         */
-       public function getResponsibleBeUser($stageId, $selectDefaultUserField = false) {
+       public function getResponsibleBeUser($stageId, $selectDefaultUserField = FALSE) {
                $workspaceRec = t3lib_BEfunc::getRecord('sys_workspace', $this->getWorkspaceId());
                $recipientArray = array();
 
                switch ($stageId) {
                        case self::STAGE_PUBLISH_EXECUTE_ID:
                        case self::STAGE_PUBLISH_ID:
-                               if ($selectDefaultUserField == false) {
+                               if ($selectDefaultUserField == FALSE) {
                                        $userList = $this->getResponsibleUser($workspaceRec['adminusers']);
                                } else {
                                        $notification_default_user = $workspaceRec['publish_notification_defaults'];
@@ -401,7 +401,7 @@ class Tx_Workspaces_Service_Stages {
                                }
                                break;
                        case self::STAGE_EDIT_ID:
-                               if ($selectDefaultUserField == false) {
+                               if ($selectDefaultUserField == FALSE) {
                                        $userList = $this->getResponsibleUser($workspaceRec['members']);
                                } else {
                                        $notification_default_user = $workspaceRec['edit_notification_defaults'];
@@ -409,7 +409,7 @@ class Tx_Workspaces_Service_Stages {
                                }
                                break;
                        default:
-                               if ($selectDefaultUserField == false) {
+                               if ($selectDefaultUserField == FALSE) {
                                        $responsible_persons = $this->getPropertyOfCurrentWorkspaceStage($stageId, 'responsible_persons');
                                        $userList = $this->getResponsibleUser($responsible_persons);
                                } else {