diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2012-02-08 06:09:36 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2012-02-08 06:09:36 +0400 |
commit | 510c8c7077933d30f9526e9a4f2a891ad8599685 (patch) | |
tree | 36a9c16e05c0921cd4ec855386ea59c9dd14966b /plugins/CustomVariables | |
parent | 818b88bc305a172b3da37eed961a108db683e967 (diff) |
Fixes #2755
git-svn-id: http://dev.piwik.org/svn/trunk@5779 59fd770c-687e-43c8-a1e3-f5a4ff64c105
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)); } } } |