aboutsummaryrefslogtreecommitdiff
path: root/modules/download
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-26 15:02:05 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-26 15:02:05 -0500
commit07253dc75c69cf585ad39a218f3f2cf97b773987 (patch)
treedcb152c85daa4d3d96fb86ac9e6798c40ffeb6cb /modules/download
parent512e7ab3acb0fd0463d680eb9fea286f15e4864d (diff)
downloadbayonetcms-07253dc75c69cf585ad39a218f3f2cf97b773987.tar.gz
commit before joe fucks shit
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@401 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'modules/download')
-rw-r--r--modules/download/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/download/index.php b/modules/download/index.php
index 1fa99e5..300bd46 100644
--- a/modules/download/index.php
+++ b/modules/download/index.php
@@ -26,13 +26,13 @@ $download = NULL;
$download_relative_path = "modules/" . basename(dirname(__FILE__)) . "/files/";
$download_absolute_path = dirname(__FILE__) . "/files/";
-$result = $db->Query("SELECT uid, name, description, filename FROM bayonet_downloads");
+$result = $db->Query("SELECT `file_id`, `name`, `description`, `filename` FROM `bayonet_downloads`");
while(($row = $db->Fetch($result)) !== false)
{
$download[] = $row;
}
-OpenTable();
+OpenContent();
echo "<div class=\"contentHeading\">Downloads</div>";
echo "<div class=\"content\">";
foreach($download as $file)
@@ -59,7 +59,7 @@ decho($download);
echo "</div>";
-CloseTable();
+CloseContent();
?> \ No newline at end of file