Author: mcantelon
Date: Mon Jan 2 13:21:33 2012
New Revision: 10513
Log:
Added culture parameter to taxonomy term finder.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Mon Jan 2 12:51:37 2012
(r10512)
+++ trunk/lib/QubitFlatfileImport.class.php Mon Jan 2 13:21:33 2012
(r10513)
@@ -301,14 +301,14 @@
return $actor;
}
- public function getTaxomoyTerms($taxonomyId)
+ public function getTaxomoyTerms($taxonomyId, $culture = 'en')
{
$terms = array();
$query = "SELECT * FROM term t \r
- LEFT JOIN term_i18n ti ON t.id=ti.id AND ti.culture='en' \r
+ LEFT JOIN term_i18n ti ON t.id=ti.id AND ti.culture=? \r
WHERE taxonomy_id=?";
- $statement = QubitFlatfileImport::sqlQuery($query, array($taxonomyId));
+ $statement = QubitFlatfileImport::sqlQuery($query, array($culture,
$taxonomyId));
while($term = $statement->fetch(PDO::FETCH_OBJ))
{
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.