@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | */ |
189 | 189 | private function setupSectionEntry($sectionClassName, $type) { |
190 | 190 | if (!class_exists($sectionClassName)) { |
191 | - $this->log->debug('Could not find ' . ucfirst($type) . ' section class ' . $sectionClassName); |
|
191 | + $this->log->debug('Could not find '.ucfirst($type).' section class '.$sectionClassName); |
|
192 | 192 | return; |
193 | 193 | } |
194 | 194 | try { |
@@ -200,13 +200,13 @@ discard block |
||
200 | 200 | |
201 | 201 | if (!$section instanceof ISection) { |
202 | 202 | $this->log->error( |
203 | - ucfirst($type) .' section instance must implement \OCP\ISection. Invalid class: {class}', |
|
203 | + ucfirst($type).' section instance must implement \OCP\ISection. Invalid class: {class}', |
|
204 | 204 | ['class' => $sectionClassName] |
205 | 205 | ); |
206 | 206 | return; |
207 | 207 | } |
208 | 208 | $table = $this->getSectionTableForType($type); |
209 | - if(!$this->hasSection(get_class($section), $table)) { |
|
209 | + if (!$this->hasSection(get_class($section), $table)) { |
|
210 | 210 | $this->addSection($section, $table); |
211 | 211 | } else { |
212 | 212 | $this->updateSection($section, $table); |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | |
273 | 273 | private function setupSettingsEntry($settingsClassName, $type) { |
274 | 274 | if (!class_exists($settingsClassName)) { |
275 | - $this->log->debug('Could not find ' . $type . ' section class ' . $settingsClassName); |
|
275 | + $this->log->debug('Could not find '.$type.' section class '.$settingsClassName); |
|
276 | 276 | return; |
277 | 277 | } |
278 | 278 | |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | |
287 | 287 | if (!$settings instanceof ISettings) { |
288 | 288 | $this->log->error( |
289 | - ucfirst($type) . ' section instance must implement \OCP\Settings\ISettings. Invalid class: {class}', |
|
289 | + ucfirst($type).' section instance must implement \OCP\Settings\ISettings. Invalid class: {class}', |
|
290 | 290 | ['class' => $settingsClassName] |
291 | 291 | ); |
292 | 292 | return; |
@@ -300,18 +300,18 @@ discard block |
||
300 | 300 | } |
301 | 301 | |
302 | 302 | private function getSectionTableForType($type) { |
303 | - if($type === 'admin') { |
|
303 | + if ($type === 'admin') { |
|
304 | 304 | return Mapper::TABLE_ADMIN_SECTIONS; |
305 | - } else if($type === 'personal') { |
|
305 | + } else if ($type === 'personal') { |
|
306 | 306 | return Mapper::TABLE_PERSONAL_SECTIONS; |
307 | 307 | } |
308 | 308 | throw new \InvalidArgumentException('"admin" or "personal" expected'); |
309 | 309 | } |
310 | 310 | |
311 | 311 | private function getSettingsTableForType($type) { |
312 | - if($type === 'admin') { |
|
312 | + if ($type === 'admin') { |
|
313 | 313 | return Mapper::TABLE_ADMIN_SETTINGS; |
314 | - } else if($type === 'personal') { |
|
314 | + } else if ($type === 'personal') { |
|
315 | 315 | return Mapper::TABLE_PERSONAL_SETTINGS; |
316 | 316 | } |
317 | 317 | throw new \InvalidArgumentException('"admin" or "personal" expected'); |
@@ -418,12 +418,12 @@ discard block |
||
418 | 418 | ); |
419 | 419 | $forms[$form->getPriority()] = [$form]; |
420 | 420 | } |
421 | - if($section === 'security') { |
|
421 | + if ($section === 'security') { |
|
422 | 422 | /** @var ISettings $form */ |
423 | 423 | $form = new Personal\Security(); |
424 | 424 | $forms[$form->getPriority()] = [$form]; |
425 | 425 | } |
426 | - if($section === 'sync-clients') { |
|
426 | + if ($section === 'sync-clients') { |
|
427 | 427 | /** @var ISettings $form */ |
428 | 428 | $form = new Personal\SyncClients($this->config, $this->defaults); |
429 | 429 | $forms[$form->getPriority()] = [$form]; |
@@ -472,7 +472,7 @@ discard block |
||
472 | 472 | ]; |
473 | 473 | |
474 | 474 | $legacyForms = \OC_App::getForms('personal'); |
475 | - if(count($legacyForms) > 0 && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { |
|
475 | + if (count($legacyForms) > 0 && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { |
|
476 | 476 | $sections[98] = [new Section('additional', $this->l->t('Additional settings'), 0, $this->url->imagePath('core', 'actions/settings-dark.svg'))]; |
477 | 477 | } |
478 | 478 | |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | */ |
501 | 501 | private function hasLegacyPersonalSettingsToRender($forms) { |
502 | 502 | foreach ($forms as $form) { |
503 | - if(trim($form) !== '') { |
|
503 | + if (trim($form) !== '') { |
|
504 | 504 | return true; |
505 | 505 | } |
506 | 506 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | use OCP\Settings\IIconSection; |
29 | 29 | use OCP\Settings\ISettings; |
30 | 30 | |
31 | -trait CommonSettingsTrait { |
|
31 | +trait CommonSettingsTrait { |
|
32 | 32 | /** @var ISettingsManager */ |
33 | 33 | private $settingsManager; |
34 | 34 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | 'admin' => [] |
43 | 43 | ]; |
44 | 44 | |
45 | - if(\OC_User::isAdminUser(\OC_User::getUser())) { |
|
45 | + if (\OC_User::isAdminUser(\OC_User::getUser())) { |
|
46 | 46 | $templateParameters['admin'] = $this->formatAdminSections($currentType, $currentSection); |
47 | 47 | } |
48 | 48 | |
@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | protected function formatSections($sections, $currentSection, $type, $currentType) { |
55 | 55 | $templateParameters = []; |
56 | 56 | /** @var \OCP\Settings\ISection[] $prioritizedSections */ |
57 | - foreach($sections as $prioritizedSections) { |
|
57 | + foreach ($sections as $prioritizedSections) { |
|
58 | 58 | foreach ($prioritizedSections as $section) { |
59 | - if($type === 'admin') { |
|
59 | + if ($type === 'admin') { |
|
60 | 60 | $settings = $this->settingsManager->getAdminSettings($section->getID()); |
61 | - } else if($type === 'personal') { |
|
61 | + } else if ($type === 'personal') { |
|
62 | 62 | $settings = $this->settingsManager->getPersonalSettings($section->getID()); |
63 | 63 | } |
64 | 64 | if (empty($settings)) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | public function getForm() { |
94 | 94 | $federatedFileSharingEnabled = $this->appManager->isEnabledForUser('federatedfilesharing'); |
95 | 95 | $lookupServerUploadEnabled = false; |
96 | - if($federatedFileSharingEnabled) { |
|
96 | + if ($federatedFileSharingEnabled) { |
|
97 | 97 | $federatedFileSharing = new Application(); |
98 | 98 | $shareProvider = $federatedFileSharing->getFederatedShareProvider(); |
99 | 99 | $lookupServerUploadEnabled = $shareProvider->isLookupServerUploadEnabled(); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | private function getLanguages(IUser $user) { |
194 | 194 | $forceLanguage = $this->config->getSystemValue('force_language', false); |
195 | - if($forceLanguage !== false) { |
|
195 | + if ($forceLanguage !== false) { |
|
196 | 196 | return []; |
197 | 197 | } |
198 | 198 | |
@@ -204,16 +204,16 @@ discard block |
||
204 | 204 | $commonLanguages = []; |
205 | 205 | $languages = []; |
206 | 206 | |
207 | - foreach($languageCodes as $lang) { |
|
207 | + foreach ($languageCodes as $lang) { |
|
208 | 208 | $l = \OC::$server->getL10N('settings', $lang); |
209 | 209 | // TRANSLATORS this is the language name for the language switcher in the personal settings and should be the localized version |
210 | 210 | $potentialName = (string) $l->t('__language_name__'); |
211 | - if($l->getLanguageCode() === $lang && substr($potentialName, 0, 1) !== '_') {//first check if the language name is in the translation file |
|
211 | + if ($l->getLanguageCode() === $lang && substr($potentialName, 0, 1) !== '_') {//first check if the language name is in the translation file |
|
212 | 212 | $ln = array('code' => $lang, 'name' => $potentialName); |
213 | 213 | } elseif ($lang === 'en') { |
214 | 214 | $ln = ['code' => $lang, 'name' => 'English (US)']; |
215 | - }else{//fallback to language code |
|
216 | - $ln=array('code'=>$lang, 'name'=>$lang); |
|
215 | + } else {//fallback to language code |
|
216 | + $ln = array('code'=>$lang, 'name'=>$lang); |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | // put appropriate languages into appropriate arrays, to print them sorted |
@@ -221,9 +221,9 @@ discard block |
||
221 | 221 | if ($lang === $userLang) { |
222 | 222 | $userLang = $ln; |
223 | 223 | } elseif (in_array($lang, self::COMMON_LANGUAGE_CODES)) { |
224 | - $commonLanguages[array_search($lang, self::COMMON_LANGUAGE_CODES)]=$ln; |
|
224 | + $commonLanguages[array_search($lang, self::COMMON_LANGUAGE_CODES)] = $ln; |
|
225 | 225 | } else { |
226 | - $languages[]=$ln; |
|
226 | + $languages[] = $ln; |
|
227 | 227 | } |
228 | 228 | } |
229 | 229 | |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | ksort($commonLanguages); |
239 | 239 | |
240 | 240 | // sort now by displayed language not the iso-code |
241 | - usort( $languages, function ($a, $b) { |
|
241 | + usort($languages, function($a, $b) { |
|
242 | 242 | if ($a['code'] === $a['name'] && $b['code'] !== $b['name']) { |
243 | 243 | // If a doesn't have a name, but b does, list b before a |
244 | 244 | return 1; |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | default: |
277 | 277 | $message = $this->l->t('Verify'); |
278 | 278 | } |
279 | - $messageParameters[$property . 'Message'] = $message; |
|
279 | + $messageParameters[$property.'Message'] = $message; |
|
280 | 280 | } |
281 | 281 | return $messageParameters; |
282 | 282 | } |
@@ -38,15 +38,15 @@ discard block |
||
38 | 38 | ?> |
39 | 39 | |
40 | 40 | <div id="quota" class="section"> |
41 | - <div style="width:<?php p($_['usage_relative']);?>%" |
|
42 | - <?php if($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>> |
|
41 | + <div style="width:<?php p($_['usage_relative']); ?>%" |
|
42 | + <?php if ($_['usage_relative'] > 80): ?> class="quota-warning" <?php endif; ?>> |
|
43 | 43 | <p id="quotatext"> |
44 | 44 | <?php if ($_['quota'] === \OCP\Files\FileInfo::SPACE_UNLIMITED): ?> |
45 | 45 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong>', |
46 | - [$_['usage'], $_['total_space']]));?> |
|
46 | + [$_['usage'], $_['total_space']])); ?> |
|
47 | 47 | <?php else: ?> |
48 | 48 | <?php print_unescaped($l->t('You are using <strong>%s</strong> of <strong>%s</strong> (<strong>%s %%</strong>)', |
49 | - [$_['usage'], $_['total_space'], $_['usage_relative']]));?> |
|
49 | + [$_['usage'], $_['total_space'], $_['usage_relative']])); ?> |
|
50 | 50 | <?php endif ?> |
51 | 51 | </p> |
52 | 52 | </div> |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | </div> |
81 | 81 | </div> |
82 | 82 | <span class="icon-checkmark hidden"/> |
83 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
83 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
84 | 84 | <input type="hidden" id="avatarscope" value="<?php p($_['avatarScope']) ?>"> |
85 | 85 | <?php } ?> |
86 | 86 | </form> |
@@ -94,14 +94,14 @@ discard block |
||
94 | 94 | <span class="icon-password"/> |
95 | 95 | </h2> |
96 | 96 | <input type="text" id="displayname" name="displayname" |
97 | - <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
97 | + <?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
98 | 98 | value="<?php p($_['displayName']) ?>" |
99 | 99 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
100 | - <?php if(!$_['displayNameChangeSupported']) { ?> |
|
101 | - <span><?php if(isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span> |
|
100 | + <?php if (!$_['displayNameChangeSupported']) { ?> |
|
101 | + <span><?php if (isset($_['displayName']) && !empty($_['displayName'])) { p($_['displayName']); } else { p($l->t('No display name set')); } ?></span> |
|
102 | 102 | <?php } ?> |
103 | 103 | <span class="icon-checkmark hidden"/> |
104 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
104 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
105 | 105 | <input type="hidden" id="displaynamescope" value="<?php p($_['displayNameScope']) ?>"> |
106 | 106 | <?php } ?> |
107 | 107 | </form> |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | <label for="email"><?php p($l->t('Email')); ?></label> |
113 | 113 | <span class="icon-password"/> |
114 | 114 | </h2> |
115 | - <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>"> |
|
115 | + <div class="verify <?php if ($_['email'] === '' || $_['emailScope'] !== 'public') p('hidden'); ?>"> |
|
116 | 116 | <img id="verify-email" title="<?php p($_['emailMessage']); ?>" data-status="<?php p($_['emailVerification']) ?>" src=" |
117 | 117 | <?php |
118 | - switch($_['emailVerification']) { |
|
118 | + switch ($_['emailVerification']) { |
|
119 | 119 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
120 | 120 | p(image_path('core', 'actions/verifying.svg')); |
121 | 121 | break; |
@@ -128,23 +128,23 @@ discard block |
||
128 | 128 | ?>"> |
129 | 129 | </div> |
130 | 130 | <input type="email" name="email" id="email" value="<?php p($_['email']); ?>" |
131 | - <?php if(!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
131 | + <?php if (!$_['displayNameChangeSupported']) { print_unescaped('class="hidden"'); } ?> |
|
132 | 132 | placeholder="<?php p($l->t('Your email address')); ?>" |
133 | 133 | autocomplete="on" autocapitalize="none" autocorrect="off" /> |
134 | - <?php if(!$_['displayNameChangeSupported']) { ?> |
|
135 | - <span><?php if(isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> |
|
134 | + <?php if (!$_['displayNameChangeSupported']) { ?> |
|
135 | + <span><?php if (isset($_['email']) && !empty($_['email'])) { p($_['email']); } else { p($l->t('No email address set')); }?></span> |
|
136 | 136 | <?php } ?> |
137 | - <?php if($_['displayNameChangeSupported']) { ?> |
|
137 | + <?php if ($_['displayNameChangeSupported']) { ?> |
|
138 | 138 | <br /> |
139 | 139 | <em><?php p($l->t('For password reset and notifications')); ?></em> |
140 | 140 | <?php } ?> |
141 | 141 | <span class="icon-checkmark hidden"/> |
142 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
142 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
143 | 143 | <input type="hidden" id="emailscope" value="<?php p($_['emailScope']) ?>"> |
144 | 144 | <?php } ?> |
145 | 145 | </form> |
146 | 146 | </div> |
147 | - <?php if($_['lookupServerUploadEnabled']) { ?> |
|
147 | + <?php if ($_['lookupServerUploadEnabled']) { ?> |
|
148 | 148 | <div class="personal-settings-setting-box"> |
149 | 149 | <form id="phoneform" class="section"> |
150 | 150 | <h2> |
@@ -179,10 +179,10 @@ discard block |
||
179 | 179 | <label for="website"><?php p($l->t('Website')); ?></label> |
180 | 180 | <span class="icon-password"/> |
181 | 181 | </h2> |
182 | - <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>"> |
|
182 | + <div class="verify <?php if ($_['website'] === '' || $_['websiteScope'] !== 'public') p('hidden'); ?>"> |
|
183 | 183 | <img id="verify-website" title="<?php p($_['websiteMessage']); ?>" data-status="<?php p($_['websiteVerification']) ?>" src=" |
184 | 184 | <?php |
185 | - switch($_['websiteVerification']) { |
|
185 | + switch ($_['websiteVerification']) { |
|
186 | 186 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
187 | 187 | p(image_path('core', 'actions/verifying.svg')); |
188 | 188 | break; |
@@ -193,13 +193,13 @@ discard block |
||
193 | 193 | p(image_path('core', 'actions/verify.svg')); |
194 | 194 | } |
195 | 195 | ?>" |
196 | - <?php if($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
196 | + <?php if ($_['websiteVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['websiteVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
197 | 197 | > |
198 | 198 | <div class="verification-dialog popovermenu bubble menu"> |
199 | 199 | <div class="verification-dialog-content"> |
200 | 200 | <p class="explainVerification"></p> |
201 | 201 | <p class="verificationCode"></p> |
202 | - <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p> |
|
202 | + <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p> |
|
203 | 203 | </div> |
204 | 204 | </div> |
205 | 205 | </div> |
@@ -216,10 +216,10 @@ discard block |
||
216 | 216 | <label for="twitter"><?php p($l->t('Twitter')); ?></label> |
217 | 217 | <span class="icon-password"/> |
218 | 218 | </h2> |
219 | - <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>"> |
|
219 | + <div class="verify <?php if ($_['twitter'] === '' || $_['twitterScope'] !== 'public') p('hidden'); ?>"> |
|
220 | 220 | <img id="verify-twitter" title="<?php p($_['twitterMessage']); ?>" data-status="<?php p($_['twitterVerification']) ?>" src=" |
221 | 221 | <?php |
222 | - switch($_['twitterVerification']) { |
|
222 | + switch ($_['twitterVerification']) { |
|
223 | 223 | case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS: |
224 | 224 | p(image_path('core', 'actions/verifying.svg')); |
225 | 225 | break; |
@@ -230,13 +230,13 @@ discard block |
||
230 | 230 | p(image_path('core', 'actions/verify.svg')); |
231 | 231 | } |
232 | 232 | ?>" |
233 | - <?php if($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
233 | + <?php if ($_['twitterVerification'] === \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS || $_['twitterVerification'] === \OC\Accounts\AccountManager::NOT_VERIFIED) print_unescaped(' class="verify-action"') ?> |
|
234 | 234 | > |
235 | 235 | <div class="verification-dialog popovermenu bubble menu"> |
236 | 236 | <div class="verification-dialog-content"> |
237 | 237 | <p class="explainVerification"></p> |
238 | 238 | <p class="verificationCode"></p> |
239 | - <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.'));?></p> |
|
239 | + <p><?php p($l->t('It can take up to 24 hours before the account is displayed as verified.')); ?></p> |
|
240 | 240 | </div> |
241 | 241 | </div> |
242 | 242 | </div> |
@@ -261,19 +261,19 @@ discard block |
||
261 | 261 | </div> |
262 | 262 | |
263 | 263 | <?php |
264 | -if($_['passwordChangeSupported']) { |
|
264 | +if ($_['passwordChangeSupported']) { |
|
265 | 265 | script('jquery-showpassword'); |
266 | 266 | ?> |
267 | 267 | <form id="passwordform" class="section"> |
268 | - <h2 class="inlineblock"><?php p($l->t('Password'));?></h2> |
|
268 | + <h2 class="inlineblock"><?php p($l->t('Password')); ?></h2> |
|
269 | 269 | <div id="password-error-msg" class="msg success inlineblock" style="display: none;">Saved</div> |
270 | 270 | <br> |
271 | 271 | <label for="pass1" class="hidden-visually"><?php p($l->t('Current password')); ?>: </label> |
272 | 272 | <input type="password" id="pass1" name="oldpassword" |
273 | - placeholder="<?php p($l->t('Current password'));?>" |
|
273 | + placeholder="<?php p($l->t('Current password')); ?>" |
|
274 | 274 | autocomplete="off" autocapitalize="none" autocorrect="off" /> |
275 | 275 | <div class="personal-show-container"> |
276 | - <label for="pass2" class="hidden-visually"><?php p($l->t('New password'));?>: </label> |
|
276 | + <label for="pass2" class="hidden-visually"><?php p($l->t('New password')); ?>: </label> |
|
277 | 277 | <input type="password" id="pass2" name="newpassword" |
278 | 278 | placeholder="<?php p($l->t('New password')); ?>" |
279 | 279 | data-typetoggle="#personal-show" |
@@ -290,27 +290,27 @@ discard block |
||
290 | 290 | <?php if (isset($_['activelanguage'])) { ?> |
291 | 291 | <form id="language" class="section"> |
292 | 292 | <h2> |
293 | - <label for="languageinput"><?php p($l->t('Language'));?></label> |
|
293 | + <label for="languageinput"><?php p($l->t('Language')); ?></label> |
|
294 | 294 | </h2> |
295 | - <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language'));?>"> |
|
296 | - <option value="<?php p($_['activelanguage']['code']);?>"> |
|
297 | - <?php p($_['activelanguage']['name']);?> |
|
295 | + <select id="languageinput" name="lang" data-placeholder="<?php p($l->t('Language')); ?>"> |
|
296 | + <option value="<?php p($_['activelanguage']['code']); ?>"> |
|
297 | + <?php p($_['activelanguage']['name']); ?> |
|
298 | 298 | </option> |
299 | - <?php foreach($_['commonlanguages'] as $language):?> |
|
300 | - <option value="<?php p($language['code']);?>"> |
|
301 | - <?php p($language['name']);?> |
|
299 | + <?php foreach ($_['commonlanguages'] as $language):?> |
|
300 | + <option value="<?php p($language['code']); ?>"> |
|
301 | + <?php p($language['name']); ?> |
|
302 | 302 | </option> |
303 | - <?php endforeach;?> |
|
303 | + <?php endforeach; ?> |
|
304 | 304 | <optgroup label="––––––––––"></optgroup> |
305 | - <?php foreach($_['languages'] as $language):?> |
|
306 | - <option value="<?php p($language['code']);?>"> |
|
307 | - <?php p($language['name']);?> |
|
305 | + <?php foreach ($_['languages'] as $language):?> |
|
306 | + <option value="<?php p($language['code']); ?>"> |
|
307 | + <?php p($language['name']); ?> |
|
308 | 308 | </option> |
309 | - <?php endforeach;?> |
|
309 | + <?php endforeach; ?> |
|
310 | 310 | </select> |
311 | 311 | <a href="https://www.transifex.com/nextcloud/nextcloud/" |
312 | 312 | target="_blank" rel="noreferrer"> |
313 | - <em><?php p($l->t('Help translate'));?></em> |
|
313 | + <em><?php p($l->t('Help translate')); ?></em> |
|
314 | 314 | </a> |
315 | 315 | </form> |
316 | 316 | <?php } ?> |