This commit is contained in:
CHIEFSOFT\ameye
2024-09-24 07:13:38 -04:00
parent dc089be9c6
commit 3bec1937ca
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -510,7 +510,7 @@ wrenchboard=#
protected $db;
public $con_name = 'wrench_dockerblog'; // 'wrench_blog';
protected function apiData($blog_id) {
protected function apiData($blog_id=0) {
$this->db = \Config\Database::connect($this->con_name);
$data = array();
$extra_filter = "";
@@ -530,6 +530,8 @@ wrenchboard=#
AND p1.post_type='post' $extra_filter
ORDER BY p1.post_date DESC LIMIT 2000";
log_message('critical', "BlogData Query -> ".$mysql );
$query = $this->db->query($mysql);
$data['payload']['blogdata'] = $query->getResult('array');
+1 -1
View File
@@ -48,7 +48,7 @@ class WrenchBlog extends BaseController
// echo "EXYTACT INPUT DATA HERE";
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
log_message('critical', "Into BlogData-> ".serialize( $in['blog_id']) );
// log_message('critical', "Into BlogData-> ".serialize( $in['blog_id']) );
log_message('critical', "BLOG DATA CALL ********* ".serialize($in) );
if (isset($in['blog_id'])){