Changeset 19843


Ignore:
Timestamp:
01/05/13 14:49:19 (7 years ago)
Author:
mistic100
Message:

text collection name, absolute path for zClip inclusion

Location:
extensions/UserCollections
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/UserCollections/include/collections.inc.php

    r17657 r19843  
    178178      if (isset($_POST['save_col'])) 
    179179      { 
    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        } 
    181188        $UserCollection->updateParam('public', $_POST['public']); 
    182189      } 
  • extensions/UserCollections/main.inc.php

    r17657 r19843  
    1818define('USER_COLLEC_ADMIN',      get_root_url() . 'admin.php?page=plugin-UserCollections'); 
    1919define('USER_COLLEC_PUBLIC',     get_absolute_root_url() . make_index_url(array('section' => 'collections')) . '/'); 
    20 define('USER_COLLEC_VERSION',    '1.0.3'); 
     20define('USER_COLLEC_VERSION',    'auto'); 
    2121 
    2222 
     
    4747   
    4848  if ( 
     49    USER_COLLEC_VERSION == 'auto' or 
    4950    $pwg_loaded_plugins['UserCollections']['version'] == 'auto' or 
    5051    version_compare($pwg_loaded_plugins['UserCollections']['version'], USER_COLLEC_VERSION, '<') 
     
    5455    user_collections_install(); 
    5556     
    56     if ($pwg_loaded_plugins['UserCollections']['version'] != 'auto') 
     57    if ( $pwg_loaded_plugins['UserCollections']['version'] != 'auto' and USER_COLLEC_VERSION != 'auto' ) 
    5758    { 
    5859      $query = ' 
  • extensions/UserCollections/template/edit.tpl

    r17914 r19843  
    66function bindZclip() {ldelim} 
    77  jQuery("#publicURL .button").zclip({ldelim} 
    8     path:'{$USER_COLLEC_PATH}template/ZeroClipboard.swf', 
     8    path:'{$ROOT_URL}{$USER_COLLEC_PATH}template/ZeroClipboard.swf', 
    99    copy:$("#publicURL .url").html(), 
    1010    afterCopy: function() {ldelim} 
Note: See TracChangeset for help on using the changeset viewer.