Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3764833
D30.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
972 B
Referenced Files
None
Subscribers
None
D30.diff
View Options
diff --git a/pages/lemonde.php b/pages/lemonde.php
--- a/pages/lemonde.php
+++ b/pages/lemonde.php
@@ -6,17 +6,14 @@
//Hardcoded known info
$this->site = "[[Le Monde]]";
- $this->skipYMD = true;
$this->issn = '1950-6244';
//Gets date
// e.g. http://www.lemonde.fr/ameriques/article/2013/05/25/le-bresil-annule-la-dette-de-douze-pays-africains_3417518_3222.html
$pos = strpos($this->url, "/article/");
- $yyyy = substr($this->url, $pos + 9, 4);
- $mm = substr($this->url, $pos + 14, 2);
- $dd = substr($this->url, $pos + 17, 2);
- $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy);
- $this->date = strftime(LONG_DATE_FORMAT, $this->unixtime);
+ $this->yyyy = substr($this->url, $pos + 9, 4);
+ $this->mm = substr($this->url, $pos + 14, 2);
+ $this->dd = substr($this->url, $pos + 17, 2);
$this->author = $this->getAuthor();
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 08:40 (18 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255797
Default Alt Text
D30.diff (972 B)
Attached To
Mode
D30: Extract date from URL for Le Monde
Attached
Detach File
Event Timeline
Log In to Comment