From f3d0cf3e0e676008b25855657196af84751ac789 Mon Sep 17 00:00:00 2001
From: Robert Sesek <rsesek@bluestatic.org>
Date: Thu, 22 Dec 2005 19:38:26 +0000
Subject: [PATCH] r667: Add userhelp to the exporter

---
 docs/datatools.php | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/docs/datatools.php b/docs/datatools.php
index b22048e..3a89305 100644
--- a/docs/datatools.php
+++ b/docs/datatools.php
@@ -33,6 +33,12 @@ $THELIST = array(
 	'resolutions' => array(
 		'table' => 'resolution',
 		'rebuild' => 'build_resolutions'
+	),
+	
+	'user help' => array(
+		'table' => 'fieldhelp',
+		'rebuild' => 'build_user_help',
+		'orderfree' => true
 	)
 );
 
@@ -56,7 +62,7 @@ if ($_REQUEST['do'] == 'export')
 {
 	foreach ($THELIST AS $display => $data)
 	{
-		$fetch = $db->query("SELECT * FROM " . TABLE_PREFIX . "$data[table] ORDER BY {$data[table]}id ASC");
+		$fetch = $db->query("SELECT * FROM " . TABLE_PREFIX . "$data[table]" . (!$data['orderfree'] ? " ORDER BY {$data[table]}id ASC" : ""));
 		while ($fitem = $db->fetch_array($fetch))
 		{
 			$exportlist["$display"][] = $fitem;
-- 
2.43.5