includes/namespaces/file.php
changeset 1309 2a14b5a25338
parent 1277 4264ace0855f
child 1331 c7d6317c5e82
--- 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])) .