Changeset 19843
- Timestamp:
- Jan 5, 2013, 2:49:19 PM (11 years ago)
- Location:
- extensions/UserCollections
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/include/collections.inc.php
r17657 r19843 178 178 if (isset($_POST['save_col'])) 179 179 { 180 $UserCollection->updateParam('name', $_POST['name']); 180 if (empty($_POST['name'])) 181 { 182 array_push($page['errors'], l10n('Please give a name')); 183 } 184 else 185 { 186 $UserCollection->updateParam('name', $_POST['name']); 187 } 181 188 $UserCollection->updateParam('public', $_POST['public']); 182 189 } -
extensions/UserCollections/main.inc.php
r17657 r19843 18 18 define('USER_COLLEC_ADMIN', get_root_url() . 'admin.php?page=plugin-UserCollections'); 19 19 define('USER_COLLEC_PUBLIC', get_absolute_root_url() . make_index_url(array('section' => 'collections')) . '/'); 20 define('USER_COLLEC_VERSION', ' 1.0.3');20 define('USER_COLLEC_VERSION', 'auto'); 21 21 22 22 … … 47 47 48 48 if ( 49 USER_COLLEC_VERSION == 'auto' or 49 50 $pwg_loaded_plugins['UserCollections']['version'] == 'auto' or 50 51 version_compare($pwg_loaded_plugins['UserCollections']['version'], USER_COLLEC_VERSION, '<') … … 54 55 user_collections_install(); 55 56 56 if ( $pwg_loaded_plugins['UserCollections']['version'] != 'auto')57 if ( $pwg_loaded_plugins['UserCollections']['version'] != 'auto' and USER_COLLEC_VERSION != 'auto' ) 57 58 { 58 59 $query = ' -
extensions/UserCollections/template/edit.tpl
r17914 r19843 6 6 function bindZclip() {ldelim} 7 7 jQuery("#publicURL .button").zclip({ldelim} 8 path:'{$ USER_COLLEC_PATH}template/ZeroClipboard.swf',8 path:'{$ROOT_URL}{$USER_COLLEC_PATH}template/ZeroClipboard.swf', 9 9 copy:$("#publicURL .url").html(), 10 10 afterCopy: function() {ldelim}
Note: See TracChangeset
for help on using the changeset viewer.