aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-05-19 13:18:27 +0000
committermistic100 <mistic@piwigo.org>2012-05-19 13:18:27 +0000
commitbb408cee7b1daf15021c85a1bcff84c96a4e6bba (patch)
tree7d79c8148f0ad74b1c9bf41f2733d46e88d04620
parentd52651cb6a6d1358ebed82a801a9ae556656bfc9 (diff)
confusion in previous commit
git-svn-id: http://piwigo.org/svn/trunk@15127 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--install/db/121-database.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/db/121-database.php b/install/db/121-database.php
index 4e922e393..a4dbe9b07 100644
--- a/install/db/121-database.php
+++ b/install/db/121-database.php
@@ -28,7 +28,7 @@ if (!defined('PHPWG_ROOT_PATH'))
// see http://piwigo.org/doc/doku.php?id=user_documentation:htaccess_and_hotlink_in_2.4
-if (!isset($page['errors'])) $page['errors'] = array();
+if (!isset($page['warnings'])) $page['warnings'] = array();
$upgrade_description = 'add/append htaccess for hotlinks';
$warning_message = 'Failed to modify <b>.htaccess</b> file, a manual intervention is needed, <a href="http://piwigo.org/doc/doku.php?id=user_documentation:htaccess_and_hotlink_in_2.4" target="_blank">click here for more information</a>';
@@ -50,6 +50,7 @@ else
if (!$writable)
{
array_push($page['warnings'], $warning_message);
+ $upgrade_description.= ': failed';
}
else
{
@@ -57,6 +58,7 @@ else
if (strpos($content, 'RewriteEngine off') !== false)
{
array_push($page['warnings'], $warning_message);
+ $upgrade_description.= ': failed';
}
else
{