diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-28 21:26:55 +0400 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-28 21:26:55 +0400 |
commit | f284d239e5feb53230ac0b7a5f43ac6de340e8b2 (patch) | |
tree | de30348c4bc1279f5485eec78c7bc5a231d2d173 /reader | |
parent | fba360afd840bdb3585b1803f62d6d44f3d8552c (diff) |
Replace echo with p
Diffstat (limited to 'reader')
-rwxr-xr-x | reader/templates/index.php | 6 | ||||
-rwxr-xr-x | reader/templates/results.php | 6 |
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> |