Changeset 20804 for extensions/gvideo/include/install.inc.php
- Timestamp:
- Feb 18, 2013, 12:20:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/include/install.inc.php
r19213 r20804 5 5 6 6 // defined here only because it's more convenient 7 define('gvideo_path', PHPWG_PLUGINS_PATH . 'gvideo/');7 define('gvideo_path', PHPWG_PLUGINS_PATH . GVIDEO_ID . '/'); 8 8 define('gvideo_table', $prefixeTable.'image_video'); 9 9 … … 93 93 } 94 94 95 // remove old configuration and upgrade video files95 // remove old configuration 96 96 if (isset($conf['PY_GVideo'])) 97 97 { 98 98 pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param = "PY_GVideo" LIMIT 1;'); 99 99 unset($conf['PY_GVideo']); 100 101 gvideo_update_24(); 102 } 100 } 101 102 // updade video files 103 gvideo_update_24(); 103 104 } 104 105 … … 216 217 // update path and rename the file 217 218 $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 ? 219 220 array_push($images_updates, array( 220 221 'id' => $img['id'], … … 257 258 ); 258 259 } 260 261 ?>
Note: See TracChangeset
for help on using the changeset viewer.