diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-31 15:31:14 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-05-31 15:31:14 +0400 |
commit | 1e11d3289f3961924280e5440d0ae15ad0e6ad00 (patch) | |
tree | e67cbf2d1f837dffeaaacdb98f7fa237a3312241 /plugins/UserCountry | |
parent | c37b3a8b5ab04df8b5602d1a63222c0ccf4d68ef (diff) |
- on a rainy sunday night, implented one of the most requested feature which was little work and should make a lot of users happy!
fixes #747
adding links on both sub tables for search engines and keywords linking directly to the search engine page for this keyword
added definition for the main search engines (approx 15) users can contribute more if they like; if a definition, eg. "search?q={k}" for Google is not found, then we simply link to the search engine homepage.
updated FAQ on how to add a search engine see http://piwik.org/faq/general/#faq_39
added tests to check that the search engine file is defined properly
- renamed queuefilter to queueFilter for consistency
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r-- | plugins/UserCountry/API.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserCountry/API.php b/plugins/UserCountry/API.php index 976f649344..ba54bcfab8 100644 --- a/plugins/UserCountry/API.php +++ b/plugins/UserCountry/API.php @@ -35,8 +35,8 @@ class Piwik_UserCountry_API $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'code', create_function('$label', 'return $label;'))); $dataTable->filter('ColumnCallbackAddMetadata', array('label', 'logo', 'Piwik_getFlagFromCode')); $dataTable->filter('ColumnCallbackReplace', array('label', 'Piwik_CountryTranslate')); - $dataTable->queuefilter('AddConstantMetadata', array('logoWidth', 18)); - $dataTable->queuefilter('AddConstantMetadata', array('logoHeight', 12)); + $dataTable->queueFilter('AddConstantMetadata', array('logoWidth', 18)); + $dataTable->queueFilter('AddConstantMetadata', array('logoHeight', 12)); return $dataTable; } @@ -44,7 +44,7 @@ class Piwik_UserCountry_API { $dataTable = $this->getDataTable('UserCountry_continent', $idSite, $period, $date); $dataTable->filter('ColumnCallbackReplace', array('label', 'Piwik_ContinentTranslate')); - $dataTable->queuefilter('ColumnCallbackAddMetadata', array('label', 'code', create_function('$label', 'return $label;'))); + $dataTable->queueFilter('ColumnCallbackAddMetadata', array('label', 'code', create_function('$label', 'return $label;'))); return $dataTable; } @@ -54,7 +54,7 @@ class Piwik_UserCountry_API $archive = Piwik_Archive::build($idSite, $period, $date ); $dataTable = $archive->getDataTable($name); $dataTable->filter('Sort', array(Piwik_Archive::INDEX_NB_VISITS)); - $dataTable->queuefilter('ReplaceColumnNames'); + $dataTable->queueFilter('ReplaceColumnNames'); return $dataTable; } |