Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/reader
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-28 21:26:55 +0400
committerLukas Reschke <lukas@statuscode.ch>2013-02-28 21:26:55 +0400
commitf284d239e5feb53230ac0b7a5f43ac6de340e8b2 (patch)
treede30348c4bc1279f5485eec78c7bc5a231d2d173 /reader
parentfba360afd840bdb3585b1803f62d6d44f3d8552c (diff)
Replace echo with p
Diffstat (limited to 'reader')
-rwxr-xr-xreader/templates/index.php6
-rwxr-xr-xreader/templates/results.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/reader/templates/index.php b/reader/templates/index.php
index b3fb838a4..e4e9afde4 100755
--- a/reader/templates/index.php
+++ b/reader/templates/index.php
@@ -22,8 +22,8 @@
if( $path != '' ){
for($i=0; $i<count($path); $i++){
$curr_path .= '/'.str_replace('+','%20', urlencode($path[$i]));?>
- <div class="crumb <?php if($i == count($path)-1) echo 'last';?> svg" data-dir='<?php echo $curr_path;?>' style='background-image:url("<?php print_unescaped(OCP\image_path('core','breadcrumb.png'));?>")'>
- <a href="<?php echo $base_url.$curr_path.'/'; ?>"><?php echo htmlentities($path[$i],ENT_COMPAT,'utf-8'); ?></a>
+ <div class="crumb <?php if($i == count($path)-1) p('last');?> svg" data-dir='<?php p($curr_path);?>' style='background-image:url("<?php print_unescaped(OCP\image_path('core','breadcrumb.png'));?>")'>
+ <a href="<?php print_unescaped($base_url.$curr_path.'/'); ?>"><?php p($path[$i]); ?></a>
</div>
<? }
}
@@ -31,7 +31,7 @@
<div id="file_action_panel"></div>
<!-- Set dir value to be passed to integrate.js -->
- <input type="hidden" name="dir" value="<?php echo empty($_['dir'])?'':rtrim($_['dir'],'/') ?>" id="dir">
+ <input type="hidden" name="dir" value="<?php p(empty($_['dir'])?'':rtrim($_['dir'],'/')) ?>" id="dir">
</div>
diff --git a/reader/templates/results.php b/reader/templates/results.php
index 829d98526..9b95f48aa 100755
--- a/reader/templates/results.php
+++ b/reader/templates/results.php
@@ -15,14 +15,14 @@
if( $path != '' ){
for($i=0; $i<count($path); $i++){
$curr_path .= '/'.str_replace('+','%20', urlencode($path[$i]));?>
- <div class="crumb <?php if($i == count($path)-1) echo 'last';?> svg" data-dir='<?php echo $curr_path;?>' style='background-image:url("<?php print_unescaped(OCP\image_path('core','breadcrumb.png'));?>")'>
- <a href="<?php echo $base_url.$curr_path.'/'; ?>"><?php echo htmlentities($path[$i],ENT_COMPAT,'utf-8'); ?></a>
+ <div class="crumb <?php if($i == count($path)-1) p('last');?> svg" data-dir='<?php p($curr_path);?>' style='background-image:url("<?php print_unescaped(OCP\image_path('core','breadcrumb.png'));?>")'>
+ <a href="<?php print_unescaped($base_url.$curr_path.'/'); ?>"><?php p($path[$i]) ?></a>
</div>
<?php }
}
?>
<div id="file_action_panel"></div>
- <input type="hidden" name="dir" value="<?php echo empty($_['path'])?'':rtrim($_['path'],'/') ?>" id="dir">
+ <input type="hidden" name="dir" value="<?php p(empty($_['path'])?'':rtrim($_['path'],'/')) ?>" id="dir">
</div>
<div class="actions"></div>