mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
fix #396 incorrect pdo_sqlite path
This commit is contained in:
@@ -106,7 +106,7 @@ return call_user_func(function()
|
|||||||
'main_connexion' => $connexionINI,
|
'main_connexion' => $connexionINI,
|
||||||
'test_connexion' => array(
|
'test_connexion' => array(
|
||||||
'driver' => 'pdo_sqlite',
|
'driver' => 'pdo_sqlite',
|
||||||
'path' => realpath($registry->get("GV_RootPath") . 'lib/unitTest/tests.sqlite'),
|
'path' => realpath(__DIR__ . '/../../../unitTest') . '/tests.sqlite',
|
||||||
'charset' => 'UTF8'
|
'charset' => 'UTF8'
|
||||||
));
|
));
|
||||||
|
|
||||||
@@ -183,10 +183,8 @@ return call_user_func(function()
|
|||||||
$app->get('/', function() use ($app)
|
$app->get('/', function() use ($app)
|
||||||
{
|
{
|
||||||
if ($app['install'] === true)
|
if ($app['install'] === true)
|
||||||
|
|
||||||
return $app->redirect('/setup/installer/');
|
return $app->redirect('/setup/installer/');
|
||||||
if ($app['upgrade'] === true)
|
if ($app['upgrade'] === true)
|
||||||
|
|
||||||
return $app->redirect('/setup/upgrader/');
|
return $app->redirect('/setup/upgrader/');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -38,7 +38,7 @@ class Root implements ControllerProviderInterface
|
|||||||
|
|
||||||
$controllers = new ControllerCollection();
|
$controllers = new ControllerCollection();
|
||||||
|
|
||||||
$controllers->get('/', function(Application $app)
|
$controllers->get('/', function(Application $app, Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
$Core = $app['Core'];
|
$Core = $app['Core'];
|
||||||
@@ -47,7 +47,7 @@ class Root implements ControllerProviderInterface
|
|||||||
|
|
||||||
\User_Adapter::updateClientInfos(3);
|
\User_Adapter::updateClientInfos(3);
|
||||||
|
|
||||||
$section = $app['request']->get('section', false);
|
$section = $request->get('section', false);
|
||||||
|
|
||||||
$available = array(
|
$available = array(
|
||||||
'connected'
|
'connected'
|
||||||
@@ -98,6 +98,7 @@ class Root implements ControllerProviderInterface
|
|||||||
'module' => 'admin'
|
'module' => 'admin'
|
||||||
, 'events' => \eventsmanager_broker::getInstance($appbox, $Core)
|
, 'events' => \eventsmanager_broker::getInstance($appbox, $Core)
|
||||||
, 'module_name' => 'Admin'
|
, 'module_name' => 'Admin'
|
||||||
|
, 'notice' => $request->get("notice")
|
||||||
, 'feature' => $feature
|
, 'feature' => $feature
|
||||||
, 'featured' => $featured
|
, 'featured' => $featured
|
||||||
, 'databoxes' => $databoxes
|
, 'databoxes' => $databoxes
|
||||||
|
@@ -315,7 +315,7 @@ class Installer implements ControllerProviderInterface
|
|||||||
|
|
||||||
$appbox->get_session()->authenticate($auth);
|
$appbox->get_session()->authenticate($auth);
|
||||||
|
|
||||||
$redirection = '/admin/index.php?section=taskmanager¬ice=install_success';
|
$redirection = '/admin/?section=taskmanager¬ice=install_success';
|
||||||
|
|
||||||
return $app->redirect($redirection);
|
return $app->redirect($redirection);
|
||||||
}
|
}
|
||||||
|
@@ -138,12 +138,10 @@ class appbox extends base
|
|||||||
$custom_path.= $collection->get_base_id();
|
$custom_path.= $collection->get_base_id();
|
||||||
|
|
||||||
if (is_null($pathfile))
|
if (is_null($pathfile))
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
$datas = file_get_contents($pathfile->getPathname());
|
$datas = file_get_contents($pathfile->getPathname());
|
||||||
if (is_null($datas))
|
if (is_null($datas))
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
file_put_contents($file, $datas);
|
file_put_contents($file, $datas);
|
||||||
@@ -195,12 +193,10 @@ class appbox extends base
|
|||||||
$custom_path.= $pic_type . '_' . $databox->get_sbas_id();
|
$custom_path.= $pic_type . '_' . $databox->get_sbas_id();
|
||||||
|
|
||||||
if (is_null($pathfile))
|
if (is_null($pathfile))
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
$datas = file_get_contents($pathfile->getPathname());
|
$datas = file_get_contents($pathfile->getPathname());
|
||||||
if (is_null($datas))
|
if (is_null($datas))
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
file_put_contents($file, $datas);
|
file_put_contents($file, $datas);
|
||||||
@@ -492,7 +488,7 @@ class appbox extends base
|
|||||||
'main_connexion' => $connexionINI,
|
'main_connexion' => $connexionINI,
|
||||||
'test_connexion' => array(
|
'test_connexion' => array(
|
||||||
'driver' => 'pdo_sqlite',
|
'driver' => 'pdo_sqlite',
|
||||||
'path' => realpath($root . 'lib/unitTest/tests.sqlite'),
|
'path' => realpath($root . 'lib/unitTest') . '/tests.sqlite',
|
||||||
'charset' => 'UTF8'
|
'charset' => 'UTF8'
|
||||||
));
|
));
|
||||||
|
|
||||||
@@ -612,7 +608,6 @@ class appbox extends base
|
|||||||
public function get_databoxes()
|
public function get_databoxes()
|
||||||
{
|
{
|
||||||
if ($this->databoxes)
|
if ($this->databoxes)
|
||||||
|
|
||||||
return $this->databoxes;
|
return $this->databoxes;
|
||||||
|
|
||||||
$ret = array();
|
$ret = array();
|
||||||
|
@@ -8,9 +8,9 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block stylesheet %}
|
{% block stylesheet %}
|
||||||
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery-ui-1.8.17/css/ui-lightness/jquery-ui-1.8.17.custom.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/admin/admincolor.css,login/geonames.css,include/jslibs/jquery.contextmenu.css" />
|
<link type="text/css" rel="stylesheet" href="/include/minify/f=include/jslibs/yui2.8/build/reset/reset.css,include/jslibs/jquery-ui-1.8.17/css/ui-lightness/jquery-ui-1.8.17.custom.css,include/jslibs/jquery-treeview/jquery.treeview.css,skins/common/main.css,skins/admin/admincolor.css,login/geonames.css,include/jslibs/jquery.contextmenu.css" />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
li.selected, div.selected{
|
li.selected, div.selected{
|
||||||
background-color:#f0ad30;
|
background-color:#f0ad30;
|
||||||
@@ -186,7 +186,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<iframe class="right PNB10" src="about:blank;" name="right" id="right" frameborder="1" border="0" framespacing="0" style="left:260px;border:none;right:0;"></iframe>
|
|
||||||
|
{% if notice %}
|
||||||
|
<div class="right PNB10 notice" style="left:260px;">
|
||||||
|
{% if notice == "install_success" %}
|
||||||
|
{% trans %}Successful install{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<iframe class="right PNB10" src="about:blank;" name="right" id="right" frameborder="1" border="0" framespacing="0" style="left:260px;border:none;right:0;{{ notice ? "top:30px" : "top:0" }}"></iframe>
|
||||||
<div class="right PNB" style="left:250px;overflow:auto;">
|
<div class="right PNB" style="left:250px;overflow:auto;">
|
||||||
<div id="right-ajax" class="PNB10"></div>
|
<div id="right-ajax" class="PNB10"></div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user