Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F54751231
D723.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D723.diff
View Options
diff --git a/pages/newyorktimes.php b/pages/newyorktimes.php
--- a/pages/newyorktimes.php
+++ b/pages/newyorktimes.php
@@ -2,19 +2,20 @@
//Page analysis for www.nytimes.com
class NewYorkTimesPage extends Page {
+
+ use DownloadWithWget;
+
function analyse () {
parent::analyse();
//Hardcoded known info
$this->site = "[[The New York Times]]";
- $this->skipYMD = true;
//Gets date from pdate metatag
- $yyyy = substr($this->meta_tags['pdate'], 0, 4);
- $mm = substr($this->meta_tags['pdate'], 4, 2);
- $dd = substr($this->meta_tags['pdate'], 6, 2);
+ $this->yyyy = substr($this->meta_tags['pdate'], 0, 4);
+ $this->mm = substr($this->meta_tags['pdate'], 4, 2);
+ $this->dd = ltrim(substr($this->meta_tags['pdate'], 6, 2), '0');
$this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy);
- $this->date = strftime(LONG_DATE_FORMAT, $this->unixtime);
//Gets author
//TODO: Handle the several authors case
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 24, 07:28 (18 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4213965
Default Alt Text
D723.diff (1 KB)
Attached To
Mode
D723: Fix analysis for The New York Times
Attached
Detach File
Event Timeline
Log In to Comment