mirror of
https://github.com/e107inc/e107.git
synced 2025-04-14 17:42:10 +02:00
Merge pull request #2711 from arunshekher/PrinterFriendlyPage-News-Author-Fix
Fix printer friendly page (print.php) news author issue: #2300
This commit is contained in:
commit
10dbc1d320
@ -71,7 +71,7 @@ else
|
||||
{
|
||||
//$con = new convert;
|
||||
|
||||
$query = "SELECT n.*,c.* FROM `#news` AS n LEFT JOIN `#news_category` AS c ON n.news_category = c.category_id WHERE n.news_id=".intval($parms);
|
||||
$query = "SELECT n.*, c.*, u.user_id, u.user_name FROM `#news` AS n LEFT JOIN `#news_category` AS c ON n.news_category = c.category_id LEFT JOIN `#user` AS u ON n.news_author = u.user_id WHERE n.news_id = " . intval($parms);
|
||||
|
||||
//$sql->db_Select("news", "*", "news_id='{$parms}'");
|
||||
$sql = e107::getDb();
|
||||
|
Loading…
x
Reference in New Issue
Block a user