Changeset 23325


Ignore:
Timestamp:
Jun 18, 2013, 4:14:49 PM (7 years ago)
Author:
plg
Message:

in case the file has a representative, we fallback to standard behavior, ie
download the original only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/download_by_size/main.inc.php

    r23157 r23325  
    2020{
    2121  global $conf, $template, $picture;
     22
     23  // in case of file with a pwg_representative, we simply fallback to the
     24  // standard button (which downloads the original file)
     25  if (!$picture['current']['src_image']->is_original())
     26  {
     27    return;
     28  }
    2229 
    2330  $template->set_prefilter('picture', 'dlsize_picture_prefilter');
Note: See TracChangeset for help on using the changeset viewer.