Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1168577
D192.id562.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 24, 9:29 PM
Size
909 B
Mime Type
text/x-diff
Expires
Thu, Sep 25, 9:29 PM (6 h, 27 m)
Engine
blob
Format
Raw Data
Handle
757026
Attached To
D192: MINC-145 - Modernize "orditems:LinkRemoveFromCart" tag
D192.id562.diff
View Options
Index: branches/5.2.x/units/orders/orders_tag_processor.php
===================================================================
--- branches/5.2.x/units/orders/orders_tag_processor.php
+++ branches/5.2.x/units/orders/orders_tag_processor.php
@@ -74,7 +74,17 @@
function Orditems_LinkRemoveFromCart($params)
{
- return $this->Application->HREF($this->Application->GetVar('t'), '', Array('pass' => 'm,orditems,ord', 'ord_event' => 'OnRemoveFromCart', 'm_cat_id'=>0));
+ $params['m_cat_id'] = 0;
+ $params['ord_event'] = 'OnRemoveFromCart';
+
+ if ( !isset($params['pass']) ) {
+ $params['pass'] = 'm,orditems,ord';
+ }
+
+ // Remove parameters, that indicate from where this aggregated tag was called.
+ unset($params['PrefixSpecial'], $params['original_tag']);
+
+ return $this->Application->ProcessParsedTag('m', 'Link', $params);
}
function Orderitems_ProductLink($params)
Event Timeline
Log In to Comment