Changeset 28849 for extensions/SmiliesSupport
- Timestamp:
- Jun 29, 2014, 4:25:59 PM (10 years ago)
- Location:
- extensions/SmiliesSupport
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmiliesSupport/admin.php
r26075 r28849 32 32 $conf['smiliessupport'] = array( 33 33 'folder' => $_POST['folder'], 34 'cols' => preg_match('#^ ([0-9]+)$#', $_POST['cols']) ? $_POST['cols'] : 6,34 'cols' => preg_match('#^[0-9]+$#', $_POST['cols']) ? $_POST['cols'] : 6, 35 35 'representant' => $sets[ $_POST['folder'] ], 36 36 ); 37 37 38 conf_update_param('smiliessupport', serialize($conf['smiliessupport']));38 conf_update_param('smiliessupport', $conf['smiliessupport']); 39 39 $page['infos'][] = l10n('Information data registered in database'); 40 40 -
extensions/SmiliesSupport/main.inc.php
r27208 r28849 14 14 define('SMILIES_DIR', SMILIES_PATH . 'smilies/'); 15 15 define('SMILIES_ADMIN', get_root_url() . 'admin.php?page=plugin-' . SMILIES_ID); 16 define('SMILIES_VERSION', 'auto');17 18 16 19 17 include_once(SMILIES_PATH.'include/functions.inc.php'); … … 41 39 global $conf; 42 40 43 include_once(SMILIES_PATH . 'maintain.inc.php'); 44 $maintain = new SmiliesSupport_maintain(SMILIES_ID); 45 $maintain->autoUpdate(SMILIES_VERSION, 'install'); 46 47 $conf['smiliessupport'] = unserialize($conf['smiliessupport']); 41 $conf['smiliessupport'] = safe_unserialize($conf['smiliessupport']); 48 42 $conf['smiliessupport_ext'] = array('gif', 'jpg', 'png', 'GIF', 'JPG', 'PNG'); 49 43
Note: See TracChangeset
for help on using the changeset viewer.