Changeset 2254 for trunk/upgrade.php


Ignore:
Timestamp:
Mar 6, 2008, 1:25:47 AM (17 years ago)
Author:
rvelices
Message:
  • upgrade goes smarty
  • event_tracer goes smarty
  • correction in index.tpl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upgrade.php

    r2102 r2254  
    33// | PhpWebGallery - a PHP based picture gallery                           |
    44// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
    5 // | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
     5// | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net |
    66// +-----------------------------------------------------------------------+
    77// | file          : $Id$
     
    148148$template = new Template(PHPWG_ROOT_PATH.'template/yoga');
    149149$template->set_filenames(array('upgrade'=>'upgrade.tpl'));
    150 $template->assign_vars(array('RELEASE'=>PHPWG_VERSION));
     150$template->assign('RELEASE', PHPWG_VERSION);
    151151
    152152// +-----------------------------------------------------------------------+
     
    180180    $current_release = '1.5.0';
    181181  }
    182   else if (!in_array(PREFIX_TABLE.'history_summary', $tables))
     182  else if ( !in_array(PREFIX_TABLE.'history_summary', $tables) )
    183183  {
    184184    if (!in_array('auto_login_key', $columns_of[PREFIX_TABLE.'user_infos']))
     
    196196  }
    197197 
    198   $template->assign_block_vars(
     198  $template->assign(
    199199    'introduction',
    200200    array(
     
    216216    die('No database upgrade required, do not refresh the page');
    217217  }
    218    
     218
    219219  $upgrade_file = PHPWG_ROOT_PATH.'install/upgrade_'.$_GET['version'].'.php';
    220220  if (is_file($upgrade_file))
     
    250250    // Create empty local files to avoid log errors
    251251    create_empty_local_files();
    252    
     252
    253253    $page['upgrade_end'] = get_moment();
    254254
    255     $template->assign_block_vars(
     255    $template->assign(
    256256      'upgrade',
    257257      array(
     
    291291      );
    292292   
    293     $template->assign_block_vars('upgrade.infos', array());
     293    $template->assign('infos', $page['infos']);
    294294   
    295     foreach ($page['infos'] as $info)
    296     {
    297       $template->assign_block_vars(
    298         'upgrade.infos.info',
    299         array(
    300           'CONTENT' => $info,
    301           )
    302         );
    303     }
    304 
    305295    $query = '
    306296UPDATE '.USER_CACHE_TABLE.'
Note: See TracChangeset for help on using the changeset viewer.