mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
set phraseanet navigator to desactivate state by default, make exception handling nicer
This commit is contained in:
@@ -60,7 +60,7 @@ class patch_370a3 implements patchInterface
|
|||||||
} catch (\Exception_NotFound $e) {
|
} catch (\Exception_NotFound $e) {
|
||||||
$client = \API_OAuth2_Application::create($appbox, null, \API_OAuth2_Application_Navigator::CLIENT_NAME);
|
$client = \API_OAuth2_Application::create($appbox, null, \API_OAuth2_Application_Navigator::CLIENT_NAME);
|
||||||
|
|
||||||
$client->set_activated(true);
|
$client->set_activated(false);
|
||||||
$client->set_grant_password(true);
|
$client->set_grant_password(true);
|
||||||
$client->set_website("http://www.phraseanet.com");
|
$client->set_website("http://www.phraseanet.com");
|
||||||
$client->set_client_id(\API_OAuth2_Application_Navigator::CLIENT_ID);
|
$client->set_client_id(\API_OAuth2_Application_Navigator::CLIENT_ID);
|
||||||
|
@@ -71,10 +71,22 @@ phrasea::headers();
|
|||||||
<?php echo _('N\'oubliez pas de redemarrer le planificateur de taches'); ?>
|
<?php echo _('N\'oubliez pas de redemarrer le planificateur de taches'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception_Setup_UpgradeAlreadyStarted $e) {
|
||||||
?>
|
?>
|
||||||
<div style="margin-top:10px;color:black;font-weight:bold;background-color:yellow;">
|
<div style="margin-top:10px;color:black;font-weight:bold;background-color:yellow;">
|
||||||
<?php echo $e->getMessage(); ?>
|
<?php echo _('The upgrade is already started'); ?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}catch(\Exception_Setup_FixBadEmailAddresses $e){
|
||||||
|
?>
|
||||||
|
<div style="margin-top:10px;color:black;font-weight:bold;background-color:yellow;">
|
||||||
|
<?php echo _('Please fix the database before starting'); ?>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}catch(\Exception $e){
|
||||||
|
?>
|
||||||
|
<div style="margin-top:10px;color:black;font-weight:bold;background-color:yellow;">
|
||||||
|
<?php echo _('An error occured'); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user