Fix #901 : allow upgrade from Phraseanet 3.1

This commit is contained in:
Romain Neutron
2012-09-27 12:48:35 +02:00
parent bd51a017e3
commit b10c6120fa
4 changed files with 94 additions and 23 deletions

View File

@@ -53,8 +53,12 @@ class patch_320aa implements patchInterface
public function apply(base &$appbox)
{
if (is_file(__DIR__ . '/../../../config/_GV.php'))
if (is_file(__DIR__ . '/../../../config/_GV.php')) {
require __DIR__ . '/../../../config/_GV.php';
} else {
return;
}
require __DIR__ . '/../../../lib/conf.d/_GV_template.inc';
define('GV_STATIC_URL', '');