Development

#1394: sfAdminGenerator.class.php.patch

You must first sign up to be able to contribute.

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  
    124124    $action = isset($params['action']) ? $params['action'] : $default_action; 
    125125    $url_params = $pk_link ? '?'.$this->getPrimaryKeyUrlParams() : '\''; 
    126126 
    127     if (!isset($options['class']) && $default_class
     127    if (!isset($options['class'])
    128128    { 
    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      } 
    130137    } 
    131     else 
    132     { 
    133       $options['style'] = 'background: #ffc url('.$icon.') no-repeat 3px 2px'; 
    134     } 
    135138 
    136139    $li_class = $li_class ? ' class="'.$li_class.'"' : ''; 
    137140