Page MenuHomeDevCentral

D30.diff
No OneTemporary

D30.diff

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

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)

Event Timeline