Changeset 29665
- Timestamp:
- Sep 20, 2014, 1:43:01 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_install.inc.php
r26946 r29665 89 89 90 90 /** 91 * Automatically activate some core plugins 92 */ 93 function activate_core_plugins() 94 { 95 include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php'); 96 97 $plugins = new plugins(); 98 99 foreach($plugins->fs_plugins as $plugin_id => $fs_plugin) 100 { 101 if (in_array($plugin_id, array('TakeATour'))) 102 { 103 $plugins->perform_action('activate', $plugin_id); 104 } 105 } 106 } 107 108 /** 91 109 * Connect to database during installation. Uses $_POST. 92 110 * -
trunk/admin/themes/default/template/upgrade.tpl
r29194 r29665 41 41 min-height:0; 42 42 border:none; 43 margin:1em auto; 43 44 } 44 45 … … 104 105 background-color:#ff7700; 105 106 color:white; 107 text-decoration:none; 106 108 } 107 109 … … 215 217 216 218 <p> 217 <a class="bigButton" href=" index.php">{'Home'|@translate}</a>219 <a class="bigButton" href="{$button_link}">{$button_label}</a> 218 220 </p> 219 221 {/if} -
trunk/include/functions.inc.php
r29008 r29665 1513 1513 $dirname .= 'language/'; 1514 1514 1515 $default_language = defined('PHPWG_INSTALLED') ?1515 $default_language = defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH') ? 1516 1516 get_default_language() : PHPWG_DEFAULT_LANGUAGE; 1517 1517 -
trunk/install.php
r29270 r29665 367 367 } 368 368 activate_core_themes(); 369 activate_core_plugins(); 369 370 370 371 $insert = array( -
trunk/install/upgrade_2.5.0.php
r26461 r29665 122 122 123 123 // now we upgrade from 2.6.0 124 //include_once(PHPWG_ROOT_PATH.'install/upgrade_2.6.0.php');124 include_once(PHPWG_ROOT_PATH.'install/upgrade_2.6.0.php'); 125 125 ?> -
trunk/upgrade.php
r28207 r29665 139 139 include(PHPWG_ROOT_PATH . 'admin/include/languages.class.php'); 140 140 $languages = new languages('utf-8'); 141 142 141 if (isset($_GET['language'])) 143 142 { … … 208 207 load_language( 'install.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 209 208 load_language( 'upgrade.lang', '', array('language'=>$language, 'target_charset'=>'utf-8', 'no_fallback' => true) ); 210 211 209 // check php version 212 210 if (version_compare(PHP_VERSION, REQUIRED_PHP_VERSION, '<')) … … 340 338 $current_release = '2.4.0'; 341 339 } 340 else if (!in_array('nb_available_tags', $columns_of[PREFIX_TABLE.'user_cache'])) 341 { 342 $current_release = '2.5.0'; 343 } 342 344 else 343 345 { … … 349 351 $applied_upgrades = array_from_query($query, 'id'); 350 352 351 if (!in_array(1 39, $applied_upgrades))352 { 353 $current_release = '2. 5.0';353 if (!in_array(144, $applied_upgrades)) 354 { 355 $current_release = '2.6.0'; 354 356 } 355 357 else … … 380 382 if (is_file($upgrade_file)) 381 383 { 384 // reset SQL counters 385 $page['queries_time'] = 0; 386 $page['count_queries'] = 0; 387 382 388 $page['upgrade_start'] = get_moment(); 383 389 $conf['die_on_sql_error'] = false; … … 439 445 $page['infos'] = array(); 440 446 441 /* might be usefull when we will have a real integrity checker442 $query = '443 REPLACE INTO '.PLUGINS_TABLE.'444 (id, state)445 VALUES (\'c13y_upgrade\', \'active\')446 ;';447 pwg_query($query);*/448 449 447 $query = ' 450 448 REPLACE INTO '.PLUGINS_TABLE.' … … 454 452 pwg_query($query); 455 453 454 $template->assign( 455 array( 456 'button_label' => l10n('Home'), 457 'button_link' => 'index.php', 458 ) 459 ); 460 461 // if the webmaster has a session, let's give a link to discover new features 462 if (!empty($_SESSION['pwg_uid'])) 463 { 464 $version_ = str_replace('.', '_', get_branch_from_version(PHPWG_VERSION).'.0'); 465 466 if (file_exists(PHPWG_PLUGINS_PATH .'TakeATour/tours/'.$version_.'/config.inc.php')) 467 { 468 load_language( 469 'plugin.lang', 470 PHPWG_PLUGINS_PATH.'TakeATour/', 471 array( 472 'language' => $language, 473 'force_fallback'=>'en_UK', 474 ) 475 ); 476 477 // we need the secret key for get_pwg_token() 478 load_conf_from_db(); 479 480 $template->assign( 481 array( 482 'button_label' => l10n('2_7_0_descrp'), // TODO avoid to update it on each release 483 'button_link' => 'admin.php?submited_tour_path=tours/'.$version_.'&pwg_token='.get_pwg_token(), 484 ) 485 ); 486 } 487 } 488 456 489 // Delete cache data 457 490 invalidate_user_cache(true);
Note: See TracChangeset
for help on using the changeset viewer.