Skip to content

Commit 9f4a580

Browse files
committed
Codestyle fixes
1 parent ab25618 commit 9f4a580

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/plugins-available/nginx_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ function update($event_name, $data) {
821821
}
822822
// Set the a+r mod to the web_folder.
823823
// Skip this for vhostalias if the web_folder is "web". In this case, everything is setup already from the vhost setup
824-
if ($data['new']['type'] != 'vhostalias' || $web_folder != "web") {
824+
if ($data['new']['type'] != 'vhostalias' || $web_folder != 'web') {
825825
$app->system->exec_safe('chmod -R a+r ?', $data['new']['document_root'].'/' . $web_folder . '/');
826826
}
827827

@@ -879,7 +879,7 @@ function update($event_name, $data) {
879879
if($this->action == 'insert' || $data["new"]["system_user"] != $data["old"]["system_user"]) {
880880
// Chown and chmod the directories below the document root
881881
// Skip this for vhostalias if the web_folder is "web". In this case, everything is setup already from the vhost setup
882-
if ($data['new']['type'] != 'vhostalias' || $web_folder != "web") {
882+
if ($data['new']['type'] != 'vhostalias' || $web_folder != 'web') {
883883
$app->system->exec_safe( 'chown -R ?:? ?', $username, $groupname, $data['new']['document_root'] . '/' . $web_folder );
884884
}
885885
// The document root itself has to be owned by root in normal level and by the web owner in security level 20

0 commit comments

Comments
 (0)