Ticket #1394: sfAdminGenerator.class.php.patch
| File sfAdminGenerator.class.php.patch, 0.9 kB (added by jerome, 2 years ago) |
|---|
-
sfAdminGenerator.class.php
old new 124 124 $action = isset($params['action']) ? $params['action'] : $default_action; 125 125 $url_params = $pk_link ? '?'.$this->getPrimaryKeyUrlParams() : '\''; 126 126 127 if (!isset($options['class']) && $default_class)127 if (!isset($options['class'])) 128 128 { 129 $options['class'] = $default_class; 129 if ($default_class) 130 { 131 $options['class'] = $default_class; 132 } 133 else 134 { 135 $options['style'] = 'background: #ffc url('.$icon.') no-repeat 3px 2px'; 136 } 130 137 } 131 else132 {133 $options['style'] = 'background: #ffc url('.$icon.') no-repeat 3px 2px';134 }135 138 136 139 $li_class = $li_class ? ' class="'.$li_class.'"' : ''; 137 140