Changeset 27229 for extensions/physical2virtual
- Timestamp:
- Feb 6, 2014, 9:55:31 AM (10 years ago)
- Location:
- extensions/physical2virtual
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/physical2virtual/admin.php
r27164 r27229 11 11 'private_physical' => isset($_POST['private_physical']), 12 12 'store_structure' => isset($_POST['store_structure']), 13 'unlock_virtual' => isset($_POST['unlock_virtual']), 14 'inherit' => isset($_POST['inherit']), 13 15 ); 14 16 if (isset($_POST['parent_cat']) and $_POST['parent_cat'] > 0) -
extensions/physical2virtual/language/en_UK/plugin.lang.php
r27164 r27229 7 7 $lang['Convertion done'] = 'Convertion done'; 8 8 $lang['Store folder structure'] = 'Store folder structure'; 9 $lang['Unlock new virtual albums when possible'] = 'Unlock new virtual albums when possible'; 10 $lang['New virtual albums inherit the group/user permissions from its parent'] = 'New virtual albums inherit the group/user permissions from its parent'; 9 11 10 12 ?> -
extensions/physical2virtual/language/ru_RU/plugin.lang.php
r27164 r27229 6 6 $lang['Convert now'] = 'Конвертировать сейчас'; 7 7 $lang['Store folder structure'] = 'Сохранять структуру папок'; 8 $lang['Unlock new virtual albums when possible'] = 'Разблокировать новые виртуальные альбомы когда возможно'; 9 $lang['New virtual albums inherit the group/user permissions from its parent'] = 'Новые виртуальные альбомы наследуют групповые/пользовательские права родителя'; 8 10 9 11 ?> -
extensions/physical2virtual/main.inc.php
r27183 r27229 2 2 /* 3 3 Plugin Name: physical2virtual 4 Version: 2.6. c4 Version: 2.6.d 5 5 Description: Autoconvert physical albums to virtual 6 6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=730 … … 56 56 { 57 57 global $conf; 58 59 $options=array(); 60 if (isset($conf['physical2virtual']['unlock_virtual']) and $conf['physical2virtual']['unlock_virtual']) 61 $options['visible'] = true; 62 $options['inherit'] = $conf['physical2virtual']['inherit']; 58 63 59 64 $query = ' … … 78 83 foreach ($uppers as $upper) 79 84 { 80 $parent = find_or_create_virtual_category($upper['name'], $parent )['id'];85 $parent = find_or_create_virtual_category($upper['name'], $parent, $options)['id']; 81 86 } 82 87 } 83 88 84 $virt_cat = find_or_create_virtual_category($virt_name, $parent );85 // $virt_cat = create_virtual_category($virt_name, $parent )['id']; // use this for duplicate folders name89 $virt_cat = find_or_create_virtual_category($virt_name, $parent, $options); 90 // $virt_cat = create_virtual_category($virt_name, $parent, $options); // use this for duplicate folders name 86 91 87 92 if (isset($conf['physical2virtual']['lock_physical']) and $conf['physical2virtual']['lock_physical']) -
extensions/physical2virtual/maintain.inc.php
r27164 r27229 15 15 'lock_physical' => false, 16 16 'private_physical' => false, 17 'unlock_virtual' => false, 18 'inherit' => false, 17 19 'update_on_manual' => true, 18 20 'update_on_upload' => false, -
extensions/physical2virtual/template/admin.tpl
r27164 r27229 30 30 </li> 31 31 <li> 32 <input type="checkbox" id="unlock_virtual" name="unlock_virtual"{if $physical2virtual.unlock_virtual} checked="checked"{/if}> 33 <label for="unlock_virtual"> 34 <b>{'Unlock new virtual albums when possible'|@translate}</b> 35 </label> 36 </li> 37 <li> 38 <input type="checkbox" id="inherit" name="inherit"{if $physical2virtual.inherit} checked="checked"{/if}> 39 <label for="inherit"> 40 <b>{'New virtual albums inherit the group/user permissions from its parent'|@translate}</b> 41 </label> 42 </li> 43 <li> 32 44 <input type="checkbox" id="store_structure" name="store_structure"{if $physical2virtual.store_structure} checked="checked"{/if}> 33 45 <label for="store_structure">
Note: See TracChangeset
for help on using the changeset viewer.