Ignore:
Timestamp:
06/20/11 08:24:05 (8 years ago)
Author:
mistic100
Message:

missing global $conf; into plugin_activate function

Location:
extensions/SmartAlbums
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmartAlbums/admin/config.inc.php

    r11392 r11438  
    55if (isset($_POST['submit'])) 
    66{ 
    7         $conf['SmartAlbums']['update_on_upload'] = isset($_POST['update_on_upload']); 
    8          
     7  $conf['SmartAlbums']['update_on_upload'] = isset($_POST['update_on_upload']); 
     8   
    99  conf_update_param('SmartAlbums', serialize($conf['SmartAlbums'])); 
    10         array_push($page['infos'], l10n('Information data registered in database')); 
     10  array_push($page['infos'], l10n('Information data registered in database')); 
    1111} 
    1212 
    1313$template->assign(array( 
    14         'update_on_upload' => $conf['SmartAlbums']['update_on_upload'], 
     14  'update_on_upload' => $conf['SmartAlbums']['update_on_upload'], 
    1515)); 
    1616 
  • extensions/SmartAlbums/maintain.inc.php

    r11392 r11438  
    3737function plugin_activate() 
    3838{  
     39  global $conf; 
     40   
    3941  if (!isset($conf['SmartAlbums'])) 
    4042  { 
     
    5254;'); 
    5355  } 
    54    
    5556} 
    5657 
Note: See TracChangeset for help on using the changeset viewer.