Changeset 17649


Ignore:
Timestamp:
Aug 27, 2012, 8:32:10 PM (8 years ago)
Author:
rvelices
Message:

remove deprecated function get_thumbnail_url + $conflocal_data_dir

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/album_notification.php

    r15598 r17649  
    5656  {
    5757    $query = '
    58 SELECT id, file, path
     58SELECT id, file, path, representative_ext
    5959  FROM '.IMAGES_TABLE.'
    6060  WHERE id = '.$category['representative_picture_id'].'
     
    7272                          'category' => $category
    7373                        ))
    74                       .'" class="thumblnk"><img src="'.get_thumbnail_url($element).'"></a>';
     74                      .'" class="thumblnk"><img src="'.DerivativeImage::url(IMG_THUMB, $element).'"></a>';
    7575    }
    7676  }
  • trunk/include/common.inc.php

    r15597 r17649  
    8787include(PHPWG_ROOT_PATH . 'include/config_default.inc.php');
    8888@include(PHPWG_ROOT_PATH. 'local/config/config.inc.php');
    89 if (!isset($conf['local_data_dir'])) $conf['local_data_dir'] = realpath(PHPWG_ROOT_PATH.$conf['data_location']); // temp 2.4 for backward compatibility
    9089
    9190defined('PWG_LOCAL_DIR') or define('PWG_LOCAL_DIR', 'local/');
    92 
    9391
    9492@include(PHPWG_ROOT_PATH.PWG_LOCAL_DIR .'config/database.inc.php');
  • trunk/include/functions.inc.php

    r17351 r17649  
    809809
    810810
    811 /* Returns the URL of the thumbnail to be displayed. If the element does not
    812  * have a thumbnail, the default mime image url is returned. The URL can be
    813  * sent to the browser, but not used in the php script.
    814  * @param array element_info assoc array containing element info from db
    815  * at least 'path' and 'id' should be present
    816  */
    817 function get_thumbnail_url($element_info)
    818 {
    819   return DerivativeImage::thumb_url($element_info);
    820 }
    821 
    822811/**
    823812 * fill the current user caddie with given elements, if not already in
Note: See TracChangeset for help on using the changeset viewer.