[BUGFIX] Missing sprite icons in module db check > record statistics
authorSven Juergens <t3@blue-side.de>
Sun, 10 Apr 2011 07:32:14 +0000 (09:32 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 16 Apr 2011 14:39:40 +0000 (16:39 +0200)
The module DB check > Record statistics is using old icons for
pages. Additionally the icons for the different doktypes are
broken.

Change-Id: I5b368b46699699406bb5fed99a8ac10619b14598
Resolves: #24835
Releases: 4.6, 4.5, 4.4
Reviewed-on: http://review.typo3.org/1535
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/lowlevel/dbint/index.php

index cfac4e4..de1475b 100755 (executable)
@@ -459,17 +459,17 @@ class SC_mod_tools_dbint_index {
                $codeArr=array();
                $codeArr['tableheader'] = array('', $GLOBALS['LANG']->getLL('count'));
                $i++;
-               $codeArr[$i][]='<img' . t3lib_iconWorks::skinImg($BACK_PATH,'gfx/i/pages.gif','width="18" height="16"') . ' hspace="4" align="top" alt="" />';
+               $codeArr[$i][] = t3lib_iconWorks::getSpriteIconForRecord('pages', array());
                $codeArr[$i][]=$GLOBALS['LANG']->getLL('total_pages');
                $codeArr[$i][]=count($admin->page_idArray);
                $i++;
                if (t3lib_extMgm::isLoaded('cms'))      {
-                       $codeArr[$i][]='<img' . t3lib_iconWorks::skinImg($BACK_PATH,'gfx/hidden_page.gif','width="18" height="16"') . ' hspace="4" align="top">';
+                       $codeArr[$i][] = t3lib_iconWorks::getSpriteIconForRecord('pages', array('hidden' => 1));
                        $codeArr[$i][]=$GLOBALS['LANG']->getLL('hidden_pages');
                        $codeArr[$i][] = $admin->recStats['hidden'];
                        $i++;
                }
-               $codeArr[$i][]='<img' . t3lib_iconWorks::skinImg($BACK_PATH,'gfx/deleted_page.gif','width="18" height="16"') . ' hspace="4" align="top">';
+               $codeArr[$i][] = t3lib_iconWorks::getSpriteIconForRecord('pages', array('deleted' => 1));
                $codeArr[$i][]=$GLOBALS['LANG']->getLL('deleted_pages');
                $codeArr[$i][] = count($admin->recStats['deleted']['pages']);
 
@@ -482,7 +482,7 @@ class SC_mod_tools_dbint_index {
                if (is_array($doktype)) {
                        foreach ($doktype as $n => $setup) {
                                if ($setup[1]!='--div--')       {
-                                       $codeArr[$n][] = '<img' . t3lib_iconWorks::skinImg($BACK_PATH,'gfx/i/' . ($PAGES_TYPES[$setup[1]]['icon'] ? $PAGES_TYPES[$setup[1]]['icon'] : $PAGES_TYPES['default']['icon']), 'width="18" height="16"') . ' hspace="4" align="top">';
+                                       $codeArr[$n][] = t3lib_iconWorks::getSpriteIconForRecord('pages', array('doktype' => $setup[1]));
                                        $codeArr[$n][] = $GLOBALS['LANG']->sL($setup[0]) . ' (' . $setup[1] . ')';
                                        $codeArr[$n][] = intval($admin->recStats['doktype'][$setup[1]]);
                                }
@@ -695,4 +695,4 @@ $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
 
-?>
+?>
\ No newline at end of file