Changeset 28842 for extensions/gvideo
- Timestamp:
- Jun 29, 2014, 4:22:26 PM (10 years ago)
- Location:
- extensions/gvideo
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/admin/config.php
r26470 r28842 27 27 ); 28 28 29 conf_update_param('gvideo', serialize($conf['gvideo']));29 conf_update_param('gvideo', $conf['gvideo']); 30 30 $page['infos'][] = l10n('Information data registered in database'); 31 31 } -
extensions/gvideo/main.inc.php
r28301 r28842 11 11 defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); 12 12 13 global $prefixeTable ;13 global $prefixeTable, $conf; 14 14 15 15 define('GVIDEO_ID', basename(dirname(__FILE__))); … … 17 17 define('GVIDEO_ADMIN', get_root_url() . 'admin.php?page=plugin-' . GVIDEO_ID); 18 18 define('GVIDEO_TABLE', $prefixeTable.'image_video'); 19 define('GVIDEO_VERSION', 'auto'); 19 20 include_once(GVIDEO_PATH . 'include/events.inc.php'); 20 21 21 22 22 add_event_handler('init', 'gvideo_init'); 23 $conf['gvideo'] = safe_unserialize($conf['gvideo']); 24 25 23 26 add_event_handler('picture_pictures_data', 'gvideo_prepare_picture'); 27 28 add_event_handler('delete_elements', 'gvideo_delete_elements'); 24 29 25 30 if (defined('IN_ADMIN')) … … 32 37 } 33 38 34 add_event_handler('delete_elements', 'gvideo_delete_elements');35 36 include_once(GVIDEO_PATH . 'include/events.inc.php');37 38 39 /**40 * init41 */42 function gvideo_init()43 {44 global $conf;45 46 include_once(GVIDEO_PATH . 'maintain.inc.php');47 $maintain = new gvideo_maintain(GVIDEO_ID);48 $maintain->autoUpdate(GVIDEO_VERSION, 'install');49 50 $conf['gvideo'] = unserialize($conf['gvideo']);51 }52 39 53 40 /**
Note: See TracChangeset
for help on using the changeset viewer.