Changeset 5979


Ignore:
Timestamp:
04/27/10 23:19:48 (9 years ago)
Author:
patdenice
Message:

local-layout.css files for simple, gally, floOs and floPure are moved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/prepare21upgrade/prepare21upgrade.php

    r5265 r5979  
    173173} 
    174174 
    175 // template/yoga/local-layout.css 
    176 $file = PHPWG_ROOT_PATH.'/template/yoga/local-layout.css'; 
    177 if (file_exists($file)) 
    178 { 
    179   copy($file, $dir.'/local/css/default-rules.css'); 
     175// template/xxx/local-layout.css 
     176$known_templates = array( 
     177  'yoga'     => 'default', 
     178  'floPure'  => 'Pure_default', 
     179  'floOs'    => 'OS_default', 
     180  'gally'    => 'gally-default', 
     181  'simple'   => 'simple', 
     182); 
     183 
     184foreach ($known_templates as $old_tpl => $new_tpl) 
     185{ 
     186  $file = PHPWG_ROOT_PATH.'/template/'.$old_tpl.'/local-layout.css'; 
     187  if (file_exists($file)) 
     188  { 
     189    copy($file, $dir.'/local/css/'.$new_tpl.'-rules.css'); 
     190  } 
    180191} 
    181192 
Note: See TracChangeset for help on using the changeset viewer.