Changeset 11381 for extensions/SmartAlbums
- Timestamp:
- Jun 15, 2011, 4:43:42 PM (13 years ago)
- Location:
- extensions/SmartAlbums
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/admin.php
r11380 r11381 11 11 { 12 12 $conf['SmartAlbums'] = array( 13 'update_on_upload' => $_POST['update_on_upload'],13 'update_on_upload' => isset($_POST['update_on_upload']), 14 14 ); 15 15 -
extensions/SmartAlbums/include/functions.inc.php
r11380 r11381 30 30 } 31 31 32 if (!function_exists('set_r endom_representant'))32 if (!function_exists('set_random_representant')) 33 33 { 34 34 include(PHPWG_ROOT_PATH.'admin/include/functions.php'); … … 50 50 if (!is_array($conf['SmartAlbums'])) $conf['SmartAlbums'] = unserialize($conf['SmartAlbums']); 51 51 52 if ( defined('SMART_NOT_UPDATE') OR $conf['SmartAlbums']['update_on_upload'] == 'false') return;52 if ( defined('SMART_NOT_UPDATE') OR !$conf['SmartAlbums']['update_on_upload'] ) return; 53 53 54 54 /* get categories with smart filters */ -
extensions/SmartAlbums/maintain.inc.php
r11380 r11381 25 25 \'SmartAlbums\', 26 26 \''.serialize(array( 27 'update_on_upload' => false,27 'update_on_upload' => true, 28 28 ) 29 29 ).'\', … … 35 35 36 36 function plugin_activate() 37 { 38 global $conf;37 { 38 $sa_config = pwg_query('SELECT * FROM `' . CONFIG_TABLE . '` WHERE param = \'SmartAlbums\';'); 39 39 40 if (! isset($conf['SmartAlbums']))40 if (!pwg_db_num_rows($sa_config)) 41 41 { 42 42 pwg_query(' … … 45 45 \'SmartAlbums\', 46 46 \''.serialize(array( 47 'update_on_upload' => false,47 'update_on_upload' => true, 48 48 ) 49 49 ).'\', -
extensions/SmartAlbums/template/admin.tpl
r11380 r11381 8 8 <ul> 9 9 <li> 10 <span class="property">{'Update albums on file upload'|@translate}</span> 11 <label><input type="radio" name="update_on_upload" value="true" {if $update_on_upload == 'true'}checked="checked"{/if}/> {'Yes'|@translate}</label> 12 <label><input type="radio" name="update_on_upload" value="false" {if $update_on_upload == 'false'}checked="checked"{/if}/> {'No'|@translate}</label> 10 <label> 11 <span class="property">{'Update albums on file upload'|@translate}</span> 12 <input type="checkbox" name="update_on_upload" value="true" {if $update_on_upload}checked="checked"{/if}/> 13 </label> 13 14 </li> 14 15 </ul>
Note: See TracChangeset
for help on using the changeset viewer.