Ignore:
Timestamp:
Jan 4, 2014, 4:13:08 PM (10 years ago)
Author:
mistic100
Message:

update for Piwigo 2.6

File:
1 edited

Legend:

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

    r19446 r26442  
    11<?php
    2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     2defined('SMART_PATH') or die('Hacking attempt!');
    33
    4 // Enregistrement de la configuration
    54if (isset($_POST['submit']))
    65{
    7   if ( $_POST['update_timeout'] == 0 or !preg_match('#^[0-9.]+$#', $_POST['update_timeout']) )
     6  if ($_POST['update_timeout'] == 0 or !preg_match('#^[0-9.]+$#', $_POST['update_timeout']))
    87  {
    9     array_push($page['errors'], l10n('Invalid number of days'));
     8    $page['errors'][] = l10n('Invalid number of days');
    109    $_POST['update_timeout'] = $conf['SmartAlbums']['update_timeout'];
    1110  }
    12    
     11
    1312  $conf['SmartAlbums'] = array(
    1413    'show_list_messages' => $conf['SmartAlbums']['show_list_messages'],
     
    1918    'smart_is_forbidden' => isset($_POST['smart_is_forbidden']),
    2019    );
    21  
     20
    2221  conf_update_param('SmartAlbums', serialize($conf['SmartAlbums']));
    23   array_push($page['infos'], l10n('Information data registered in database'));
     22  $page['infos'][] = l10n('Information data registered in database');
    2423}
    2524
    2625$template->assign($conf['SmartAlbums']);
    2726
    28 $template->set_filename('SmartAlbums_content', dirname(__FILE__).'/template/config.tpl');
    29 
    30 ?>
     27$template->set_filename('SmartAlbums_content', realpath(SMART_PATH . 'admin/template/config.tpl'));
Note: See TracChangeset for help on using the changeset viewer.