Fixed a table_prefix omission in File namespace code.
authorDan Fuhry <dan@enanocms.org>
Thu, 28 Oct 2010 03:32:57 -0400
changeset 1309 2a14b5a25338
parent 1308 f9bee9b125ee
child 1310 41ac3758ba79
Fixed a table_prefix omission in File namespace code.
includes/namespaces/file.php
--- a/includes/namespaces/file.php	Thu Oct 28 03:05:31 2010 -0400
+++ b/includes/namespaces/file.php	Thu Oct 28 03:32:57 2010 -0400
@@ -190,7 +190,7 @@
 		$db->free_result();
 		$html .= '<h3>' . $lang->get('onpage_filebox_lbl_pagesusing') . '</h3>';
 		$q = $db->sql_query('SELECT t.page_id, t.namespace, p.name FROM ' . table_prefix . "page_text AS t\n"
-			              . "  LEFT JOIN enano_pages AS p\n"
+			              . "  LEFT JOIN " . table_prefix . "pages AS p\n"
 			              . "    ON ( t.page_id = p.urlname AND t.namespace = p.namespace )\n"
 			              . "  WHERE t.page_text REGEXP '\\\\[\\\\[:" .
 							  addslashes(preg_quote($paths->nslist[$this->namespace])) .