|
@@ -1,4 +1,4 @@ discard block |
|
|
block discarded – undo |
|
1
|
|
-<?php declare(strict_types=1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
|
1
|
+<?php declare(strict_types = 1); defined('BASEPATH') OR exit('No direct script access allowed'); |
|
2
|
2
|
|
|
3
|
3
|
class Tracker_Admin_Model extends Tracker_Base_Model { |
|
4
|
4
|
public function __construct() { |
|
@@ -65,7 +65,7 @@ discard block |
|
|
block discarded – undo |
|
65
|
65
|
// @formatter:on |
|
66
|
66
|
|
|
67
|
67
|
if($query->num_rows() > 0) { |
|
68
|
|
- foreach ($query->result() as $row) { |
|
|
68
|
+ foreach($query->result() as $row) { |
|
69
|
69
|
print "> {$row->title} <{$row->site_class}> | <{$row->id}>"; //Print this prior to doing anything so we can more easily find out if something went wrong |
|
70
|
70
|
$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url); |
|
71
|
71
|
if(is_array($titleData) && !is_null($titleData['latest_chapter'])) { |
|
@@ -101,9 +101,9 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
->get(); |
|
102
|
102
|
|
|
103
|
103
|
$sites = $query->result_array(); |
|
104
|
|
- foreach ($sites as $site) { |
|
|
104
|
+ foreach($sites as $site) { |
|
105
|
105
|
if($titleDataList = $this->sites->{$site['site_class']}->doCustomUpdate()) { |
|
106
|
|
- foreach ($titleDataList as $titleURL => $titleData) { |
|
|
106
|
+ foreach($titleDataList as $titleURL => $titleData) { |
|
107
|
107
|
print "> {$titleData['title']} <{$site['site_class']}>"; //Print this prior to doing anything so we can more easily find out if something went wrong |
|
108
|
108
|
if(is_array($titleData) && !is_null($titleData['latest_chapter'])) { |
|
109
|
109
|
if($dbTitleData = $this->Tracker->title->getID($titleURL, (int) $site['id'], FALSE, TRUE)) { |
|
@@ -165,7 +165,7 @@ discard block |
|
|
block discarded – undo |
|
165
|
165
|
// @formatter:on |
|
166
|
166
|
|
|
167
|
167
|
if($query->num_rows() > 0) { |
|
168
|
|
- foreach ($query->result() as $row) { |
|
|
168
|
+ foreach($query->result() as $row) { |
|
169
|
169
|
print "> {$row->title} <{$row->site_class}>"; //Print this prior to doing anything so we can more easily find out if something went wrong |
|
170
|
170
|
$titleData = $this->sites->{$row->site_class}->getTitleData($row->title_url); |
|
171
|
171
|
if($titleData['title'] && is_array($titleData) && !is_null($titleData['latest_chapter'])) { |