Changeset 1338
- Timestamp:
- 05/10/06 21:49:07 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/data/generator/sfPropelAdmin/default/template/actions/actions.class.php
r1270 r1338 14 14 public function preExecute () 15 15 { 16 $this->getResponse()->addStylesheet('<?php echo $this->getParameterValue('css', '/sf/css/sf_admin/main') ?>' , 'first');16 $this->getResponse()->addStylesheet('<?php echo $this->getParameterValue('css', '/sf/css/sf_admin/main') ?>'); 17 17 } 18 18 trunk/lib/config/sfViewConfigHandler.class.php
r1202 r1338 259 259 foreach ($stylesheets as $css) 260 260 { 261 $position = ''; 261 262 if (is_array($css)) 262 263 { 263 264 $key = key($css); 264 265 $options = $css[$key]; 266 if (isset($options['position'])) 267 { 268 $position = $options['position']; 269 unset($options['position']); 270 } 265 271 } 266 272 else … … 272 278 if ($key) 273 279 { 274 $data[] = sprintf(" \$response->addStylesheet('%s', ' ', %s);", $key, var_export($options, true));280 $data[] = sprintf(" \$response->addStylesheet('%s', '%s', %s);", $key, $position, var_export($options, true)); 275 281 } 276 282 }