Skip to content

Commit fbc78a0

Browse files
authored
refactor: Replaced remaining deprecated urlEscape calls. (#2008)
1 parent fdaa31e commit fbc78a0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/core/Mage/Widget/Model/Widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function getWidgetDeclaration($type, $params = array(), $asIs = true)
256256
'<img id="%s" src="%s" title="%s">',
257257
$this->_idEncode($directive),
258258
$image,
259-
Mage::helper('core')->urlEscape($directive)
259+
Mage::helper('core')->escapeUrl($directive)
260260
);
261261
return $html;
262262
}

app/design/frontend/base/default/template/catalog/layer/filter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<?php foreach ($this->getItems() as $_item): ?>
3737
<li>
3838
<?php if ($_item->getCount() > 0): ?>
39-
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?></a>
39+
<a href="<?php echo $this->escapeUrl($_item->getUrl()) ?>"><?php echo $_item->getLabel() ?></a>
4040
<?php else: echo $_item->getLabel() ?>
4141
<?php endif ?>
4242
<?php if ($this->shouldDisplayProductCount()): ?>

app/design/frontend/rwd/default/template/catalog/layer/filter.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<?php foreach ($this->getItems() as $_item): ?>
3737
<li>
3838
<?php if ($_item->getCount() > 0): ?>
39-
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>">
39+
<a href="<?php echo $this->escapeUrl($_item->getUrl()) ?>">
4040
<?php echo $_item->getLabel() ?>
4141
<?php if ($this->shouldDisplayProductCount()): ?>
4242
<span class="count">(<?php echo $_item->getCount() ?>)</span>

app/design/frontend/rwd/default/template/configurableswatches/catalog/layer/filter/swatches.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ $_swatchOuterHeight = $_dimHelper->getOuterHeight(Mage_ConfigurableSwatches_Help
5151
?>
5252
<li<?php if ($_hasImage){ echo ' style="line-height: ' . $_lineHeight . 'px;"'; } ?>>
5353
<?php if ($_hasItems): ?>
54-
<a href="<?php echo $this->urlEscape($_item->getUrl()) ?>" class="<?php echo $_linkClass ?>">
54+
<a href="<?php echo $this->escapeUrl($_item->getUrl()) ?>" class="<?php echo $_linkClass ?>">
5555
<?php else: ?>
5656
<span class="<?php echo $_linkClass ?>">
5757
<?php endif ?>

0 commit comments

Comments
 (0)