Changeset 27146
- Timestamp:
- Feb 3, 2014, 1:33:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/physical2virtual/main.inc.php
r27096 r27146 2 2 /* 3 3 Plugin Name: physical2virtual 4 Version: 2.6. a4 Version: 2.6.b 5 5 Description: Autoconvert physical albums to virtual 6 6 Author: JanisV … … 50 50 { 51 51 $virt_name = $row['name']; 52 $created = false; 52 53 if (!in_array($virt_name, $virt_cats)) 53 54 { 54 55 $parent = isset($conf['physical2virtual']['parent_cat']) ? $conf['physical2virtual']['parent_cat'] : null; 55 56 $virt_id = create_virtual_category($virt_name, $parent)['id']; 57 $created = true; 56 58 57 59 if (isset($conf['physical2virtual']['lock_physical']) and $conf['physical2virtual']['lock_physical']) … … 78 80 ;'; 79 81 pwg_query($query); 82 83 if ($created) 84 { 85 set_random_representant(array($virt_id)); 86 } 80 87 } 81 88 }
Note: See TracChangeset
for help on using the changeset viewer.