Changeset 21026


Ignore:
Timestamp:
02/25/13 18:28:27 (6 years ago)
Author:
flop25
Message:

set back the working code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_default/themeconf.inc.php

    r21025 r21026  
    7474    return true; 
    7575  } 
    76   elseif (file_exists(PHPWG_ROOT_PATH.'themes/OS_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php')) 
     76  elseif (file_exists(PHPWG_ROOT_PATH.'themes/Pure_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php')) 
    7777  { 
    78     include(PHPWG_ROOT_PATH.'themes/OS_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'); 
     78    include(PHPWG_ROOT_PATH.'themes/Pure_default/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'); 
    7979    return true; 
    8080  } 
     
    8282  { 
    8383    $list_pattern_path=array(); 
    84     $dir=PHPWG_ROOT_PATH.'themes/OS_default'; 
     84    $dir=PHPWG_ROOT_PATH.'themes/Pure_default'; 
    8585    $dh = opendir($dir); 
    8686    while (($file = readdir ($dh)) !== false ) { 
     
    118118  $page['errors'][]='Theme not compatible'; 
    119119} 
    120 global $pattern; 
    121 foreach ($pattern['OS_default'] as $array_pattern) 
    122 { 
    123   $name_pref=create_function("$content,&$smarty"," 
    124     global $pattern; 
    125     $r=\$pattern['".$array_pattern[2]."']['R']; 
    126     $ps=\$pattern['".$array_pattern[2]."']['S']; 
    127     foreach($r as $i => $pr) 
    128     { 
    129       $content = str_replace($ps[$i], $pr, $content); 
    130     } 
    131     return $content; 
    132   "); 
    133   $name_funct=create_function(""," 
    134     global $template; 
    135     $template->set_prefilter(".$array_pattern[1].", ".$name_pref."); 
    136   "); 
    137   add_event_handler($array_pattern[0], $name_funct); 
    138  
    139 } 
    140 /* 
    141120add_event_handler('loc_end_index', 'OS_default_index'); 
    142121function OS_default_index() 
     
    174153  return $content; 
    175154} 
     155<<<<<<< .mine 
     156?> 
     157======= 
    176158?> */ 
     159>>>>>>> .r21025 
Note: See TracChangeset for help on using the changeset viewer.