Commit 111438b1 authored by Ghislain Loas's avatar Ghislain Loas

dev #99489 wip on themes store

parent 27e46994
Pipeline #10059 passed with stage
in 42 minutes and 18 seconds
......@@ -21,12 +21,19 @@
class Class_Template_Update {
use Trait_EchoError;
public function run() {
$this->echoError("\nMise à jour des thèmes du magasin.\n");
$templates = (new Class_Template_Loader)->getTemplates();
array_walk($templates,
function($template)
{
$template->updateSettings();
$this->echoError(sprintf("Mise à jour du thème %s\n", $template->getId()));
});
$this->echoError("Mise à jour des thèmes du magasin terminée.\n");
}
}
......@@ -193,4 +193,8 @@ ol.breadcrumb li {
.password_toggle i {
color: var(--front-background-modale) !important;
}
input.form-control[type=text] {
display:unset;
}
\ No newline at end of file
......@@ -347,7 +347,9 @@ class MuscleTemplateUpdateSettingsTest extends MuscleTemplateTestCase {
$muscle_settings_instance->setMuscleIconsMapLibrary(['new_icon_key' => 'class far fa-new-ico']);
$muscle_settings->setSettings(serialize($muscle_settings_instance->toArray()))->save();
(new Class_Template_Update)->run();
$updader = (new Class_Template_Update);
$updader->setEcho(true);
$updader->run();
$muscle_settings->clearCache();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment