[files_encryption] Use p() instead of echo()

This commit is contained in:
Lukas Reschke 2013-02-27 21:20:37 +01:00
parent 85209287bb
commit 7f8eddffe4
2 changed files with 8 additions and 8 deletions

View File

@ -1,19 +1,19 @@
<form id="encryption"> <form id="encryption">
<fieldset class="personalblock"> <fieldset class="personalblock">
<legend> <legend>
<?php echo $l->t( 'Encryption' ); ?> <?php p($l->t( 'Encryption' )); ?>
</legend> </legend>
<p> <p>
<?php echo $l->t( 'File encryption is enabled.' ); ?> <?php p($l->t( 'File encryption is enabled.' )); ?>
</p> </p>
<?php if ( ! empty( $_["blacklist"] ) ): ?> <?php if ( ! empty( $_["blacklist"] ) ): ?>
<p> <p>
<?php echo $l->t( 'The following file types will not be encrypted:' ); ?> <?php p($l->t( 'The following file types will not be encrypted:' )); ?>
</p> </p>
<ul> <ul>
<?php foreach( $_["blacklist"] as $type ): ?> <?php foreach( $_["blacklist"] as $type ): ?>
<li> <li>
<?php echo $type; ?> <?php p($type); ?>
</li> </li>
<?php endforeach; ?> <?php endforeach; ?>
</ul> </ul>

View File

@ -2,17 +2,17 @@
<fieldset class="personalblock"> <fieldset class="personalblock">
<p> <p>
<strong><?php echo $l->t( 'Encryption' ); ?></strong> <strong><?php p($l->t( 'Encryption' )); ?></strong>
<?php echo $l->t( "Exclude the following file types from encryption:" ); ?> <?php p($l->t( "Exclude the following file types from encryption:" )); ?>
<br /> <br />
<select <select
id='encryption_blacklist' id='encryption_blacklist'
title="<?php echo $l->t( 'None' )?>" title="<?php p($l->t( 'None' ))?>"
multiple="multiple"> multiple="multiple">
<?php foreach($_["blacklist"] as $type): ?> <?php foreach($_["blacklist"] as $type): ?>
<option selected="selected" value="<?php echo $type; ?>"> <?php echo $type; ?> </option> <option selected="selected" value="<?php p($type); ?>"> <?php p($type); ?> </option>
<?php endforeach;?> <?php endforeach;?>
</select> </select>
</p> </p>