aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/front
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-11-08 15:02:45 +0100
committerArthurHoaro <arthur@hoa.ro>2020-11-09 10:56:49 +0100
commitb99e00f7cd5f7e2090f44cd97bfb426db55340c2 (patch)
tree1eea2479c3438c55a9c5c284cc28483fe8dbaf4b /application/front
parent53054b2bf6a919fd4ff9b44b6ad1986f21f488b6 (diff)
downloadShaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.gz
Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.tar.zst
Shaarli-b99e00f7cd5f7e2090f44cd97bfb426db55340c2.zip
Manually fix remaining PHPCS errors
Diffstat (limited to 'application/front')
-rw-r--r--application/front/controller/admin/ConfigureController.php9
-rw-r--r--application/front/controller/admin/ServerController.php4
2 files changed, 10 insertions, 3 deletions
diff --git a/application/front/controller/admin/ConfigureController.php b/application/front/controller/admin/ConfigureController.php
index eb26ef21..dc421661 100644
--- a/application/front/controller/admin/ConfigureController.php
+++ b/application/front/controller/admin/ConfigureController.php
@@ -51,7 +51,10 @@ class ConfigureController extends ShaarliAdminController
51 $this->assignView('languages', Languages::getAvailableLanguages()); 51 $this->assignView('languages', Languages::getAvailableLanguages());
52 $this->assignView('gd_enabled', extension_loaded('gd')); 52 $this->assignView('gd_enabled', extension_loaded('gd'));
53 $this->assignView('thumbnails_mode', $this->container->conf->get('thumbnails.mode', Thumbnailer::MODE_NONE)); 53 $this->assignView('thumbnails_mode', $this->container->conf->get('thumbnails.mode', Thumbnailer::MODE_NONE));
54 $this->assignView('pagetitle', t('Configure') . ' - ' . $this->container->conf->get('general.title', 'Shaarli')); 54 $this->assignView(
55 'pagetitle',
56 t('Configure') . ' - ' . $this->container->conf->get('general.title', 'Shaarli')
57 );
55 58
56 return $response->write($this->render(TemplatePage::CONFIGURE)); 59 return $response->write($this->render(TemplatePage::CONFIGURE));
57 } 60 }
@@ -101,7 +104,9 @@ class ConfigureController extends ShaarliAdminController
101 ) { 104 ) {
102 $this->saveWarningMessage( 105 $this->saveWarningMessage(
103 t('You have enabled or changed thumbnails mode.') . 106 t('You have enabled or changed thumbnails mode.') .
104 '<a href="' . $this->container->basePath . '/admin/thumbnails">' . t('Please synchronize them.') . '</a>' 107 '<a href="' . $this->container->basePath . '/admin/thumbnails">' .
108 t('Please synchronize them.') .
109 '</a>'
105 ); 110 );
106 } 111 }
107 $this->container->conf->set('thumbnails.mode', $thumbnailsMode); 112 $this->container->conf->set('thumbnails.mode', $thumbnailsMode);
diff --git a/application/front/controller/admin/ServerController.php b/application/front/controller/admin/ServerController.php
index 80997940..575a2f9d 100644
--- a/application/front/controller/admin/ServerController.php
+++ b/application/front/controller/admin/ServerController.php
@@ -65,7 +65,9 @@ class ServerController extends ShaarliAdminController
65 65
66 $this->saveWarningMessage( 66 $this->saveWarningMessage(
67 t('Thumbnails cache has been cleared.') . ' ' . 67 t('Thumbnails cache has been cleared.') . ' ' .
68 '<a href="' . $this->container->basePath . '/admin/thumbnails">' . t('Please synchronize them.') . '</a>' 68 '<a href="' . $this->container->basePath . '/admin/thumbnails">' .
69 t('Please synchronize them.') .
70 '</a>'
69 ); 71 );
70 } else { 72 } else {
71 $folders = [ 73 $folders = [