Changeset 12948


Ignore:
Timestamp:
01/24/12 00:40:03 (8 years ago)
Author:
flop25
Message:

compatible with $confquestion_mark_in_urls = false ;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/themeconf.inc.php

    r12408 r12948  
    5252  foreach ($tpl_thumbnails_var as $tplvar) 
    5353  { 
    54     list($width, $height, $type, $attr) = getimagesize( $tplvar['TN_SRC'] ); 
     54    list($width, $height, $type, $attr) = getimagesize( str_replace("../", "", $tplvar['TN_SRC']) ); 
    5555    $tplvar['TN_WIDTH']=$width; 
    5656    $tplvar['TN_HEIGHT']=$height; 
     
    7171          if (isset($tplvar['FILE_WIDTH'])) 
    7272          { 
    73            $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['FILE_PATH']."&w=".$conf_thumbnail_width; 
     73           $tplvar['TN_SRC']=get_root_url().PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['FILE_PATH']."&w=".$conf_thumbnail_width; 
    7474          } 
    7575          else 
    7676          { 
    77            $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['TN_SRC']."&w=".$conf_thumbnail_width; 
     77           $tplvar['TN_SRC']=get_root_url().PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".str_replace("../", "", $tplvar['TN_SRC'])."&w=".$conf_thumbnail_width; 
    7878          } 
    7979          $tplvar['TN_HEIGHT']=floor($tplvar['TN_HEIGHT']*($conf_thumbnail_width/$tplvar['TN_WIDTH'])); 
     
    8585            if (isset($tplvar['FILE_WIDTH'])) 
    8686            { 
    87              $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['FILE_PATH']."&w=".$conf_thumbnail_width; 
     87             $tplvar['TN_SRC']=get_root_url().PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['FILE_PATH']."&w=".$conf_thumbnail_width; 
    8888            } 
    8989            else 
    9090            { 
    91              $tplvar['TN_SRC']=PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".$tplvar['TN_SRC']."&w=".$conf_thumbnail_width; 
     91             $tplvar['TN_SRC']=get_root_url().PHPWG_THEMES_PATH."stripped_black_bloc/library/phpthumb/phpThumb.php?src=../../../../".str_replace("../", "", $tplvar['TN_SRC'])."&w=".$conf_thumbnail_width; 
    9292            } 
    9393            $tplvar['TN_HEIGHT']=floor($tplvar['TN_HEIGHT']*($conf_thumbnail_width/$tplvar['TN_WIDTH'])); 
Note: See TracChangeset for help on using the changeset viewer.