Closed (fixed)
Project:
Control Panel
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Nov 2005 at 20:46 UTC
Updated:
18 Nov 2005 at 19:20 UTC
For the check if the current theme overrides the icons you look for control_panel_default.png in the controlpanel directory under the themes directory:
if (file_exists($theme_path . '/control_panel_default.png')) {
$image_directory = $theme_path;
}
The icon sizes sub directories are not taken into account here. I dont have files in this directory, but in the 48x48 subdirectory.
There should be an additional
variable_get('controlpanel_icon_size', '48x48');
in there, like:
if (file_exists($theme_path . '/' . variable_get('controlpanel_icon_size', '48x48') . '/control_panel_default.png')) {
$image_directory = $theme_path;
}
Comments
Comment #1
dreed47 commentedfixed and committed
Comment #2
(not verified) commented