diff options
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r-- | plugins/CustomVariables/API.php | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/plugins/CustomVariables/API.php b/plugins/CustomVariables/API.php index 531c195b28..00d6e59557 100644 --- a/plugins/CustomVariables/API.php +++ b/plugins/CustomVariables/API.php @@ -52,22 +52,13 @@ class Piwik_CustomVariables_API if($dataTable instanceof Piwik_DataTable && !$_leavePiwikCoreVariables) { - $mapping = array( - '_pks' => Piwik_Translate('Goals_ProductSKU'), - '_pkn' => Piwik_Translate('Goals_ProductName'), - '_pkc' => Piwik_Translate('Goals_ProductCategory'), - '_pkp' => 'do not display price values in UI' - ); - foreach($mapping as $core => $friendly) + $mapping = array('_pks', '_pkn', '_pkc', '_pkp'); + foreach($mapping as $name) { - $row = $dataTable->getRowFromLabel($core); + $row = $dataTable->getRowFromLabel($name); if($row) { - $row->setColumn('label', $friendly); - if($core == '_pkp') - { - $dataTable->deleteRow($dataTable->getRowIdFromLabel($core)); - } + $dataTable->deleteRow($dataTable->getRowIdFromLabel($name)); } } } |