Ignore:
Timestamp:
Feb 18, 2013, 12:20:10 PM (11 years ago)
Author:
mistic100
Message:
  • add support for semi-private Vimeo videos
  • escape tags
  • compatible with safe_mode=On
  • deactivate autosize
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/gvideo/include/install.inc.php

    r19213 r20804  
    55
    66// defined here only because it's more convenient
    7 define('gvideo_path', PHPWG_PLUGINS_PATH . 'gvideo/');
     7define('gvideo_path', PHPWG_PLUGINS_PATH . GVIDEO_ID . '/');
    88define('gvideo_table', $prefixeTable.'image_video');
    99
     
    9393  }
    9494 
    95   // remove old configuration and upgrade video files
     95  // remove old configuration
    9696  if (isset($conf['PY_GVideo']))
    9797  {
    9898    pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "PY_GVideo" LIMIT 1;');
    9999    unset($conf['PY_GVideo']);
    100  
    101     gvideo_update_24();
    102   }
     100  }
     101 
     102  // updade video files
     103  gvideo_update_24();
    103104}
    104105
     
    216217    // update path and rename the file
    217218    $img['new_path'] = $real_path.$thumb_name;
    218     rename($img['path'], $img['new_path']);
     219    rename($img['path'], $img['new_path']); // why ? what's the purpose of this line ?
    219220    array_push($images_updates, array(
    220221      'id' => $img['id'],
     
    257258    );
    258259}
     260
     261?>
Note: See TracChangeset for help on using the changeset viewer.