Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F726845
D245.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
Mon, Jan 6, 1:43 AM
Size
1 KB
Mime Type
text/x-diff
Expires
Tue, Jan 7, 1:43 AM (2 d, 13 h ago)
Engine
blob
Format
Raw Data
Handle
536935
Attached To
D245: INP-1447 Remove usage of 'name' parameter in "kDBTagProcessor::GetList" method
D245.diff
View Options
Index: branches/5.2.x/core/admin_templates/config/config_universal.tpl
===================================================================
--- branches/5.2.x/core/admin_templates/config/config_universal.tpl
+++ branches/5.2.x/core/admin_templates/config/config_universal.tpl
@@ -1,6 +1,6 @@
<inp2:m_include t="incs/header"/>
-<inp2:conf_InitList name="Default" per_page="-1"/>
+<inp2:conf_InitList per_page="-1"/>
<inp2:m_Get name="section" no_html_escape="1" result_to_var="section"/>
<inp2:m_RenderElement name="combined_header" prefix="conf" section="$section" title_preset="section_label" perm_event="conf:OnLoad"/>
Index: branches/5.2.x/core/kernel/db/db_tag_processor.php
===================================================================
--- branches/5.2.x/core/kernel/db/db_tag_processor.php
+++ branches/5.2.x/core/kernel/db/db_tag_processor.php
@@ -346,7 +346,8 @@
*/
function &GetList($params)
{
- $list_name = $this->SelectParam($params, 'list_name,name');
+ $list_name = array_key_exists('list_name', $params) ? $params['list_name'] : '';
+
if ( !$list_name ) {
$list_name = $this->Application->Parser->GetParam('list_name');
}
Index: branches/5.2.x/core/units/visits/visits_tag_processor.php
===================================================================
--- branches/5.2.x/core/units/visits/visits_tag_processor.php
+++ branches/5.2.x/core/units/visits/visits_tag_processor.php
@@ -163,7 +163,8 @@
*/
function &GetList($params)
{
- $list_name = $this->SelectParam($params, 'list_name,name');
+ $list_name = array_key_exists('list_name', $params) ? $params['list_name'] : '';
+
if ( !$list_name ) {
$list_name = $this->Application->Parser->GetParam('list_name');
}
Event Timeline
Log In to Comment