@@ -18,8 +18,11 @@ discard block |
||
| 18 | 18 | <?php if(is_array($err)):?> |
| 19 | 19 | <?php print_unescaped($err['error']); ?> |
| 20 | 20 | <span class='hint'><?php print_unescaped($err['hint']); ?></span> |
| 21 | - <?php else: ?> |
|
| 22 | - <?php print_unescaped($err); ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 23 | + <?php print_unescaped($err); |
|
| 24 | +} |
|
| 25 | +?> |
|
| 23 | 26 | <?php endif; ?> |
| 24 | 27 | </p> |
| 25 | 28 | <?php endforeach; ?> |
@@ -75,8 +78,12 @@ discard block |
||
| 75 | 78 | |
| 76 | 79 | <?php if(!$_['dbIsSet'] OR count($_['errors']) > 0): ?> |
| 77 | 80 | <fieldset id='databaseBackend'> |
| 78 | - <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) |
|
| 79 | - $hasOtherDB = true; else $hasOtherDB =false; //other than SQLite ?> |
|
| 81 | + <?php if($_['hasMySQL'] or $_['hasPostgreSQL'] or $_['hasOracle']) { |
|
| 82 | + $hasOtherDB = true; |
|
| 83 | +} else { |
|
| 84 | + $hasOtherDB =false; |
|
| 85 | + } |
|
| 86 | + //other than SQLite ?> |
|
| 80 | 87 | <legend><?php p($l->t( 'Configure the database' )); ?></legend> |
| 81 | 88 | <div id="selectDbType"> |
| 82 | 89 | <?php foreach($_['databases'] as $type => $label): ?> |
@@ -88,11 +95,14 @@ discard block |
||
| 88 | 95 | <?php p($l->t( 'For more details check out the documentation.' )); ?> ↗</a> |
| 89 | 96 | </p> |
| 90 | 97 | <input type="hidden" id="dbtype" name="dbtype" value="<?php p($type) ?>"> |
| 91 | - <?php else: ?> |
|
| 98 | + <?php else { |
|
| 99 | + : ?> |
|
| 92 | 100 | <input type="radio" name="dbtype" value="<?php p($type) ?>" id="<?php p($type) ?>" |
| 93 | 101 | <?php print_unescaped($_['dbtype'] === $type ? 'checked="checked" ' : '') ?>/> |
| 94 | 102 | <label class="<?php p($type) ?>" for="<?php p($type) ?>"><?php p($label) ?></label> |
| 95 | - <?php endif; ?> |
|
| 103 | + <?php endif; |
|
| 104 | +} |
|
| 105 | +?> |
|
| 96 | 106 | <?php endforeach; ?> |
| 97 | 107 | </div> |
| 98 | 108 | </fieldset> |
@@ -14,10 +14,13 @@ |
||
| 14 | 14 | ?> |
| 15 | 15 | <?php if (isset($_['content'])): ?> |
| 16 | 16 | <?php print_unescaped($_['content']) ?> |
| 17 | -<?php else: ?> |
|
| 17 | +<?php else { |
|
| 18 | + : ?> |
|
| 18 | 19 | <ul> |
| 19 | 20 | <li class="error"> |
| 20 | - <?php p($l->t('File not found')); ?><br> |
|
| 21 | + <?php p($l->t('File not found')); |
|
| 22 | +} |
|
| 23 | +?><br> |
|
| 21 | 24 | <p class="hint"><?php p($l->t('The specified document has not been found on the server.')); ?></p> |
| 22 | 25 | <p class="hint"><a href="<?php p(\OC::$server->getURLGenerator()->linkTo('', 'index.php')) ?>"><?php p($l->t('You can click here to return to %s.', array($theme->getName()))); ?></a></p> |
| 23 | 26 | </li> |
@@ -56,7 +56,6 @@ |
||
| 56 | 56 | if($query) { |
| 57 | 57 | $result = \OC::$server->getSearch()->searchPaged($query, $inApps, $page, $size); |
| 58 | 58 | OC_JSON::encodedPrint($result); |
| 59 | -} |
|
| 60 | -else { |
|
| 59 | +} else { |
|
| 61 | 60 | echo 'false'; |
| 62 | 61 | } |
@@ -74,8 +74,7 @@ |
||
| 74 | 74 | |
| 75 | 75 | try { |
| 76 | 76 | $value = $this->removeSubValue(array_slice($configNames, 1), $value, $input->hasParameterOption('--error-if-not-exists')); |
| 77 | - } |
|
| 78 | - catch (\UnexpectedValueException $e) { |
|
| 77 | + } catch (\UnexpectedValueException $e) { |
|
| 79 | 78 | $output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>'); |
| 80 | 79 | return 1; |
| 81 | 80 | } |
@@ -3,12 +3,18 @@ discard block |
||
| 3 | 3 | <span><?php p($l->t('Default quota'));?></span> |
| 4 | 4 | <?php if((bool) $_['isAdmin']): ?> |
| 5 | 5 | <select id='default_quota' data-inputtitle="<?php p($l->t('Please enter storage quota (ex: "512 MB" or "12 GB")')) ?>" data-tipsy-gravity="s"> |
| 6 | - <option <?php if($_['default_quota'] === 'none') print_unescaped('selected="selected"');?> value='none'> |
|
| 6 | + <option <?php if($_['default_quota'] === 'none') { |
|
| 7 | + print_unescaped('selected="selected"'); |
|
| 8 | +} |
|
| 9 | +?> value='none'> |
|
| 7 | 10 | <?php p($l->t('Unlimited'));?> |
| 8 | 11 | </option> |
| 9 | 12 | <?php foreach($_['quota_preset'] as $preset):?> |
| 10 | 13 | <?php if($preset !== 'default'):?> |
| 11 | - <option <?php if($_['default_quota']==$preset) print_unescaped('selected="selected"');?> value='<?php p($preset);?>'> |
|
| 14 | + <option <?php if($_['default_quota']==$preset) { |
|
| 15 | + print_unescaped('selected="selected"'); |
|
| 16 | +} |
|
| 17 | +?> value='<?php p($preset);?>'> |
|
| 12 | 18 | <?php p($preset);?> |
| 13 | 19 | </option> |
| 14 | 20 | <?php endif;?> |
@@ -28,8 +34,11 @@ discard block |
||
| 28 | 34 | : |
| 29 | 35 | <?php if( $_['default_quota'] === 'none'): ?> |
| 30 | 36 | <?php p($l->t('Unlimited'));?> |
| 31 | - <?php else: ?> |
|
| 32 | - <?php p($_['default_quota']);?> |
|
| 37 | + <?php else { |
|
| 38 | + : ?> |
|
| 39 | + <?php p($_['default_quota']); |
|
| 40 | +} |
|
| 41 | +?> |
|
| 33 | 42 | <?php endif; ?> |
| 34 | 43 | <?php endif; ?> |
| 35 | 44 | </div> |
@@ -23,8 +23,11 @@ |
||
| 23 | 23 | <?php p($rootCert->getIssuerName()) ?> |
| 24 | 24 | </td> |
| 25 | 25 | <td <?php if ($rootCert != ''): ?>class="remove" |
| 26 | - <?php else: ?>style="visibility:hidden;" |
|
| 27 | - <?php endif; ?>><img alt="<?php p($l->t('Delete')); ?>" |
|
| 26 | + <?php else { |
|
| 27 | + : ?>style="visibility:hidden;" |
|
| 28 | + <?php endif; |
|
| 29 | +} |
|
| 30 | +?>><img alt="<?php p($l->t('Delete')); ?>" |
|
| 28 | 31 | title="<?php p($l->t('Delete')); ?>" |
| 29 | 32 | class="action" |
| 30 | 33 | src="<?php print_unescaped(image_path('core', 'actions/delete.svg')); ?>"/> |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | // Return Success story |
| 67 | 67 | if($username) { |
| 68 | 68 | $targetUserObject->setQuota($quota); |
| 69 | -}else{//set the default quota when no username is specified |
|
| 69 | +} else{//set the default quota when no username is specified |
|
| 70 | 70 | if($quota === 'default') {//'default' as default quota makes no sense |
| 71 | 71 | $quota='none'; |
| 72 | 72 | } |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | ]; |
| 83 | 83 | } |
| 84 | 84 | $subAdmins = $result; |
| 85 | -}else{ |
|
| 85 | +} else{ |
|
| 86 | 86 | /* Retrieve group IDs from $groups array, so we can pass that information into OC_Group::displayNamesInGroups() */ |
| 87 | 87 | $gids = array(); |
| 88 | 88 | foreach($groups as $group) { |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | $url=\OCP\Util::linkToAbsolute( 'core', 'doc/admin/index.html' ); |
| 40 | 40 | $style1=''; |
| 41 | 41 | $style2=' active'; |
| 42 | -}else{ |
|
| 42 | +} else{ |
|
| 43 | 43 | $url=\OCP\Util::linkToAbsolute( 'core', 'doc/user/index.html' ); |
| 44 | 44 | $style1=' active'; |
| 45 | 45 | $style2=''; |