diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-05-22 19:31:14 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-05-22 19:31:14 +0000 |
| commit | 7ff2182965b99895738a6f36c699f73bec7ea55d (patch) | |
| tree | 59dfeb38a34f834b2d68761cbc1c7089f12947f1 /includes/functions/functions_db.php | |
| parent | fea8e18a3d964895a112526354da308c3aa77d43 (diff) | |
| download | webtrees-7ff2182965b99895738a6f36c699f73bec7ea55d.tar.gz webtrees-7ff2182965b99895738a6f36c699f73bec7ea55d.tar.bz2 webtrees-7ff2182965b99895738a6f36c699f73bec7ea55d.zip | |
#580980 FAQ List access, SVN 8318
Diffstat (limited to 'includes/functions/functions_db.php')
| -rw-r--r-- | includes/functions/functions_db.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/includes/functions/functions_db.php b/includes/functions/functions_db.php index bdc7f716b2..7f779a1fdd 100644 --- a/includes/functions/functions_db.php +++ b/includes/functions/functions_db.php @@ -1841,34 +1841,6 @@ function get_server_list($ged_id=WT_GED_ID){ return $sitelist; } -/** -* Retrieve the array of faqs from the DB table blocks -* @param int $id The FAQ ID to retrieve -* @return array $faqs The array containing the FAQ items -*/ -function get_faq_data($id='') { - global $TBLPREFIX, $GEDCOM; - - $faqs = array(); - // Read the faq data from the DB - $sql="SELECT b_id, b_location, b_order, b_config, b_username FROM {$TBLPREFIX}blocks WHERE b_username IN (?, ?) AND b_name=?"; - $vars=array($GEDCOM, '*all*', 'faq'); - if ($id!='') { - $sql.=" AND b_order=?"; - $vars[]=$id; - } else { - $sql.=' ORDER BY b_order'; - } - $rows=WT_DB::prepare($sql)->execute($vars)->fetchAll(); - - foreach ($rows as $row) { - $faqs[$row->b_order][$row->b_location]["text" ]=unserialize($row->b_config); - $faqs[$row->b_order][$row->b_location]["pid" ]=$row->b_id; - $faqs[$row->b_order][$row->b_location]["gedcom"]=$row->b_username; - } - return $faqs; -} - function delete_fact($linenum, $pid, $gedrec) { global $linefix; |
