Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T140
Change Details
Change Details
Old
New
Diff
Rue89 URLs changed with the acquisition by Le Nouvel Observateur. So the following code isn't up to date: ``` //Gets date // http://www.rue89.com/2011/02/26/ $yyyy = substr($this->url, 21, 4); $mm = substr($this->url, 26, 2); $dd = substr($this->url, 29, 2); $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy); $this->date = strftime(LONG_DATE_FORMAT, $this->unixtime); ``` New one should be something like: ``` $dateUrlFragment = "/2011/02/26"; list($this->yyyy, $this->mm, $this->dd) = explode('/', $dateURLFragment); ```
Rue89 URLs changed with the acquisition by Le Nouvel Observateur. So the following code isn't up to date: ``` //Gets date // http://www.rue89.com/2011/02/26/ $yyyy = substr($this->url, 21, 4); $mm = substr($this->url, 26, 2); $dd = substr($this->url, 29, 2); $this->unixtime = mktime(0, 0, 0, $mm, $dd, $yyyy); $this->date = strftime(LONG_DATE_FORMAT, $this->unixtime); ``` New one should be something like: ``` $dateUrlFragment = "/2011/02/26"; list($this->yyyy, $this->mm, $this->dd) = explode('/', $dateURLFragment); ```
Continue