1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 01:30:32 +02:00

Fixes #851 - Admin-UI - when the listQry doesn't contain backticks around table names.

This commit is contained in:
Cameron
2015-02-01 18:45:33 -08:00
parent 9e5f201ff1
commit af5c0b2ead
2 changed files with 34 additions and 4 deletions

View File

@@ -86,7 +86,13 @@ class plugin_gallery_admin extends e_admin_dispatcher
*/
protected $menuTitle = 'Gallery';
function init()
{
if(E107_DEBUG_LEVEL > 0)
{
$this->adminMenu['main/list'] = array('caption'=> LAN_CATEGORY, 'perm' => 'P');
}
}
}
@@ -99,7 +105,8 @@ class gallery_cat_admin_ui extends e_admin_ui
protected $perPage = 10; //no limit
protected $listOrder = 'media_cat_order';
protected $listQry = "SELECT * FROM #core_media_cat WHERE media_cat_owner = 'gallery' "; // without any Order or Limit.
protected $listQry = "SELECT * FROM #core_media_cat WHERE media_cat_owner = 'gallery' "; // without any Order or Limit.
// protected $listQry = "SELECT * FROM #core_media "; // without any Order or Limit.
// protected $editQry = "SELECT * FROM #faq_info WHERE faq_info_id = {ID}";
protected $fields = array(