[TASK] Reapply direct changes of TYPO3 Core
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Classes / BackendUserInterface / WorkspaceSelectorToolbarItem.php
index d58b40c..25fb3e9 100644 (file)
@@ -56,7 +56,7 @@ class WorkspaceSelectorToolbarItem implements backend_toolbarItem {
         *
         * @param       TYPO3backend    TYPO3 backend object reference
         */
-       public function __construct(TYPO3backend &$backendReference = null) {
+       public function __construct(TYPO3backend &$backendReference = NULL) {
                $this->backendReference       = $backendReference;
                $this->changeWorkspace        = t3lib_div::_GP('changeWorkspace');
                $this->changeWorkspacePreview = t3lib_div::_GP('changeWorkspacePreview');
@@ -69,7 +69,7 @@ class WorkspaceSelectorToolbarItem implements backend_toolbarItem {
         * checks whether the user has access to this toolbar item
         *
         * @see         typo3/alt_shortcut.php
-        * @return  boolean  true if user has access, false if not
+        * @return  boolean  TRUE if user has access, FALSE if not
         */
        public function checkAccess() {
                if (t3lib_extMgm::isLoaded('workspaces')) {
@@ -92,7 +92,7 @@ class WorkspaceSelectorToolbarItem implements backend_toolbarItem {
         * @return      string          workspace selector as HTML select
         */
        public function render() {
-               $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:toolbarItems.workspace', true);
+               $title = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:toolbarItems.workspace', TRUE);
                $this->addJavascriptToBackend();
                $availableWorkspaces = tx_Workspaces_Service_Workspaces::getAvailableWorkspaces();
                $workspaceMenu       = array();
@@ -124,7 +124,7 @@ class WorkspaceSelectorToolbarItem implements backend_toolbarItem {
                        }
                } else {
                        $workspaceMenu[] = '<li>' . $stateUncheckedIcon . ' ' .
-                               $GLOBALS['LANG']->getLL('bookmark_noWSfound', true) .
+                               $GLOBALS['LANG']->getLL('bookmark_noWSfound', TRUE) .
                                '</li>';
                }
 
@@ -132,7 +132,7 @@ class WorkspaceSelectorToolbarItem implements backend_toolbarItem {
                                // go to workspace module link
                        $workspaceMenu[] = '<li class="divider">' . $stateUncheckedIcon . ' ' .
                                '<a href="javascript:top.goToModule(\'web_WorkspacesWorkspaces\');" target="content" id="goToWsModule">' .
-                               ' '. $GLOBALS['LANG']->getLL('bookmark_workspace', true) . '</a></li>';
+                               ' '. $GLOBALS['LANG']->getLL('bookmark_workspace', TRUE) . '</a></li>';
                }
 
                $workspaceMenu[] = '</ul>';
@@ -168,4 +168,4 @@ if(!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php'])) {
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php']);
 }
-?>
+?>
\ No newline at end of file