summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dibb <beandog@gentoo.org>2010-04-21 09:41:17 -0600
committerSteve Dibb <beandog@gentoo.org>2010-04-21 09:41:17 -0600
commit80b1dec07f920f4e5e8d31bfdaf2c5c648d73056 (patch)
treef7642a81faffd4faaeb1842bb3a3a9d12e4f8665 /class.db.category.php
parentcosmetics (diff)
downloadznurt-org-frontend-80b1dec07f920f4e5e8d31bfdaf2c5c648d73056.tar.gz
znurt-org-frontend-80b1dec07f920f4e5e8d31bfdaf2c5c648d73056.tar.bz2
znurt-org-frontend-80b1dec07f920f4e5e8d31bfdaf2c5c648d73056.zip
recent updates
Diffstat (limited to 'class.db.category.php')
-rw-r--r--class.db.category.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/class.db.category.php b/class.db.category.php
index 8ad8456..acd8ceb 100644
--- a/class.db.category.php
+++ b/class.db.category.php
@@ -46,6 +46,21 @@
}
}
+ public function getDescription($lingua = "en") {
+
+ if($this->description)
+ return $this->description;
+
+ $db =& MDB2::singleton();
+
+ $sql = "SELECT description FROM category_description WHERE category = ".$db->quote($this->id)." AND lingua = ".$db->quote($lingua).";";
+
+ $this->description = $db->getOne($sql);
+
+ return $this->description;
+
+ }
+
}
?> \ No newline at end of file