Fix #901 : allow upgrade from Phraseanet 3.1

This commit is contained in:
Romain Neutron
2012-09-27 12:48:35 +02:00
parent de22e18309
commit e96a861f0a
4 changed files with 94 additions and 24 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', '');