changed the way how javascritp and css files needed to be referenced when adding...
[Packages/TYPO3.CMS.git] / typo3 / classes / class.clearcachemenu.php
index 931b2ae..64f74c6 100644 (file)
@@ -106,10 +106,10 @@ class ClearCacheMenu implements backend_toolbarItem {
 
                $cacheMenu[] = '<a href="#" class="toolbar-item"><img'.t3lib_iconWorks::skinImg($this->backPath, 'gfx/lightning.png', 'width="16" height="16"').' title="Clear Cache" alt="" /></a>';
 
-               $cacheMenu[] = '<ul style="display: none;">';
+               $cacheMenu[] = '<ul class="toolbar-item-menu" style="display: none;">';
 
                foreach($this->cacheActions as $actionKey => $cacheAction) {
-                       $cacheMenu[] = '<li>'.$cacheAction['icon'].' <a href="'.htmlspecialchars($cacheAction['href']).'">'.$cacheAction['title'].'</a></li>';
+                       $cacheMenu[] = '<li><a href="'.htmlspecialchars($cacheAction['href']).'">'.$cacheAction['icon'].' '.$cacheAction['title'].'</a></li>';
                }
 
                $cacheMenu[] = '</ul>';
@@ -123,7 +123,7 @@ class ClearCacheMenu implements backend_toolbarItem {
         * @return      void
         */
        private function addJavascriptToBackend() {
-               $this->backendReference->addJavascriptFile('typo3/js/clearcachemenu.js');
+               $this->backendReference->addJavascriptFile('js/clearcachemenu.js');
        }
 
        /**
@@ -137,8 +137,8 @@ class ClearCacheMenu implements backend_toolbarItem {
 
 }
 
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.workspaceselector.php']) {
-       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.workspaceselector.php']);
+if(defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.clearcachemenu.php']) {
+       include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.clearcachemenu.php']);
 }
 
 ?>
\ No newline at end of file