mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Merge branch '3.7'
This commit is contained in:
@@ -202,10 +202,15 @@ class Configuration
|
|||||||
return $this->specifications->delete();
|
return $this->specifications->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setConfigurations($configurations)
|
public function setConfigurations($configurations, $environment = null)
|
||||||
{
|
{
|
||||||
$this->specifications->setConfigurations($configurations);
|
$this->specifications->setConfigurations($configurations);
|
||||||
$this->configuration = new ParameterBag($configurations[$this->environment]);
|
|
||||||
|
if (null === $environment) {
|
||||||
|
$environment = $this->environment;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->setEnvironnement($environment);
|
||||||
|
|
||||||
return $this->getConfigurations();
|
return $this->getConfigurations();
|
||||||
}
|
}
|
||||||
|
@@ -266,7 +266,7 @@ class Installer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->app['phraseanet.configuration']->setConfigurations($arrayConf);
|
$this->app['phraseanet.configuration']->setConfigurations($arrayConf, $arrayConf['environment']);
|
||||||
$this->app['phraseanet.configuration']->setBinaries(array('binaries' => $this->binaryData));
|
$this->app['phraseanet.configuration']->setBinaries(array('binaries' => $this->binaryData));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -65,6 +65,8 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
|
|||||||
|
|
||||||
public $nb_days;
|
public $nb_days;
|
||||||
|
|
||||||
|
public $nb_days;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construit un dashboard selon les droits du usrid, si sbas vaut null
|
* Construit un dashboard selon les droits du usrid, si sbas vaut null
|
||||||
* c'est un report sur toutes les bases, sinon sur le sbasid
|
* c'est un report sur toutes les bases, sinon sur le sbasid
|
||||||
|
@@ -187,7 +187,11 @@
|
|||||||
*/
|
*/
|
||||||
var ThumbEditor = function(videoId, canvaId){
|
var ThumbEditor = function(videoId, canvaId){
|
||||||
|
|
||||||
var editorVideo = new Video(document.getElementById(videoId));
|
var domElement = document.getElementById(videoId);
|
||||||
|
|
||||||
|
if (null !== domElement) {
|
||||||
|
var editorVideo = new Video(domElement);
|
||||||
|
}
|
||||||
var store = new Store();
|
var store = new Store();
|
||||||
|
|
||||||
function getCanva(){
|
function getCanva(){
|
||||||
@@ -198,7 +202,8 @@
|
|||||||
isSupported : function () {
|
isSupported : function () {
|
||||||
var elem = document.createElement('canvas');
|
var elem = document.createElement('canvas');
|
||||||
|
|
||||||
return !! elem.getContext && !! elem.getContext('2d');
|
return !! document.getElementById(videoId) && document.getElementById(canvaId)
|
||||||
|
&& !! elem.getContext && !! elem.getContext('2d');
|
||||||
},
|
},
|
||||||
screenshot : function(){
|
screenshot : function(){
|
||||||
var screenshot = new ScreenShot(
|
var screenshot = new ScreenShot(
|
||||||
|
Reference in New Issue
Block a user