aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-09-20 11:43:01 +0000
committerplegall <plg@piwigo.org>2014-09-20 11:43:01 +0000
commitb0cc8f1bc2be174105cd71b3d31e7ae3f51ee0c6 (patch)
tree4e436a9aa74c2de02fc8d5288c9d60a58bff6c66 /admin
parent4e612f3e59de9292ff9034cc69127003574bc1dc (diff)
* feature 3142: upgrade script to Piwigo 2.7
* link to Tour 2_7_0 at the end of upgrade * activate plugin Take a Tour by default git-svn-id: http://piwigo.org/svn/trunk@29665 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/include/functions_install.inc.php18
-rw-r--r--admin/themes/default/template/upgrade.tpl4
2 files changed, 21 insertions, 1 deletions
diff --git a/admin/include/functions_install.inc.php b/admin/include/functions_install.inc.php
index 43043a0b0..a97835583 100644
--- a/admin/include/functions_install.inc.php
+++ b/admin/include/functions_install.inc.php
@@ -88,6 +88,24 @@ function activate_core_themes()
}
/**
+ * Automatically activate some core plugins
+ */
+function activate_core_plugins()
+{
+ include_once(PHPWG_ROOT_PATH.'admin/include/plugins.class.php');
+
+ $plugins = new plugins();
+
+ foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
+ {
+ if (in_array($plugin_id, array('TakeATour')))
+ {
+ $plugins->perform_action('activate', $plugin_id);
+ }
+ }
+}
+
+/**
* Connect to database during installation. Uses $_POST.
*
* @param array &$infos - populated with infos
diff --git a/admin/themes/default/template/upgrade.tpl b/admin/themes/default/template/upgrade.tpl
index a29078716..abf11291f 100644
--- a/admin/themes/default/template/upgrade.tpl
+++ b/admin/themes/default/template/upgrade.tpl
@@ -40,6 +40,7 @@ body {
#content {
min-height:0;
border:none;
+ margin:1em auto;
}
#theHeader {
@@ -103,6 +104,7 @@ input[type="submit"], input[type="button"], a.bigButton {
input[type="submit"]:hover, input[type="button"]:hover, a.bigButton:hover {
background-color:#ff7700;
color:white;
+ text-decoration:none;
}
input[type="text"], input[type="password"], select {
@@ -214,7 +216,7 @@ input[type="text"]:focus, input[type="password"]:focus, select:focus {
</fieldset>
<p>
- <a class="bigButton" href="index.php">{'Home'|@translate}</a>
+ <a class="bigButton" href="{$button_link}">{$button_label}</a>
</p>
{/if}