Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/dbschema/upgrade.php

    r2319 r2566  
    1616    $cleanup_sessions = false; // update it in a step that needed sessions to be removed 
    1717     $version = $core->getVersion('core'); 
    18       
     18 
    1919     if ($version === null) { 
    2020          return false; 
    2121     } 
    22       
     22 
    2323     if (version_compare($version,DC_VERSION,'<') == 1 || strpos(DC_VERSION,'dev')) 
    2424     { 
     
    2828                    throw new Exception(__('SQLite Database Schema cannot be upgraded.')); 
    2929               } 
    30                 
     30 
    3131               # Database upgrade 
    3232               $_s = new dbStruct($core->con,$core->prefix); 
    3333               require dirname(__FILE__).'/db-schema.php'; 
    34                 
     34 
    3535               $si = new dbStruct($core->con,$core->prefix); 
    3636               $changes = $si->synchronize($_s); 
    37                 
     37 
    3838               /* Some other upgrades 
    3939               ------------------------------------ */ 
     
    4949                    } 
    5050               } 
    51                 
     51 
    5252               if (version_compare($version,'2.0-beta7.3','<')) 
    5353               { 
     
    6161                    $core->con->execute(sprintf($strReq,'default','blowup')); 
    6262               } 
    63                 
     63 
    6464               if (version_compare($version,'2.1-alpha2-r2383','<')) 
    6565               { 
    6666                    $schema = dbSchema::init($core->con); 
    6767                    $schema->dropUnique($core->prefix.'category',$core->prefix.'uk_cat_title'); 
    68                      
     68 
    6969                    # Reindex categories 
    7070                    $rs = $core->con->select( 
     
    8787                    } 
    8888               } 
    89                 
     89 
    9090               if (version_compare($version,'2.1.6','<=')) 
    9191               { 
     
    117117                    } 
    118118               } 
    119                 
     119 
    120120               if (version_compare($version,'2.2-alpha1-r3043','<')) 
    121121               { 
     
    125125                         $core->plugins->deleteModule('metadata'); 
    126126                    } 
    127                      
     127 
    128128                    # Tags template class has been renamed 
    129129                    $sqlstr = 
     
    175175                         $count++; 
    176176                    } 
    177                      
     177 
    178178                    # A bit of housecleaning for no longer needed files 
    179179                    $remfiles = array ( 
     
    272272                         'themes/default/tpl' 
    273273                    ); 
    274                      
     274 
    275275                    foreach ($remfiles as $f) { 
    276276                         @unlink(DC_ROOT.'/'.$f); 
     
    280280                    } 
    281281               } 
    282                 
     282 
    283283               if (version_compare($version,'2.3.1','<')) 
    284284               { 
     
    385385                    if ($rs->f(0)==0) { 
    386386                         $strReq = sprintf($strReqFormat,'date_formats',serialize($date_formats),'Date formats examples'); 
    387                          $core->con->execute($strReq);                       
     387                         $core->con->execute($strReq); 
    388388                    } 
    389389                    $rs = $core->con->select(sprintf($strReqSelect,'time_formats')); 
     
    397397                    if ($rs->f(0)==0) { 
    398398                         $strReq = sprintf($strReqFormat,'store_plugin_url','http://update.dotaddict.org/dc2/plugins.xml','Plugins XML feed location'); 
    399                          $core->con->execute($strReq);                       
     399                         $core->con->execute($strReq); 
    400400                    } 
    401401                    $rs = $core->con->select(sprintf($strReqSelect,'store_theme_url')); 
    402402                    if ($rs->f(0)==0) { 
    403403                         $strReq = sprintf($strReqFormat,'store_theme_url','http://update.dotaddict.org/dc2/themes.xml','Themes XML feed location'); 
    404                          $core->con->execute($strReq);                       
    405                     } 
    406                } 
    407                 
     404                         $core->con->execute($strReq); 
     405                    } 
     406               } 
     407 
    408408               $core->setVersion('core',DC_VERSION); 
    409409               $core->blogDefaults(); 
    410                 
     410 
    411411               # Drop content from session table if changes or if needed 
    412412               if ($changes != 0 || $cleanup_sessions) { 
    413413                    $core->con->execute('DELETE FROM '.$core->prefix.'session '); 
    414414               } 
    415                 
     415 
    416416               # Empty templates cache directory 
    417417               try { 
    418418                    $core->emptyTemplatesCache(); 
    419419               } catch (Exception $e) {} 
    420                 
     420 
    421421               return $changes; 
    422422          } 
     
    427427          } 
    428428     } 
    429       
     429 
    430430     # No upgrade? 
    431431     return false; 
    432432} 
    433 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map