From 5a763aee8dd16ec7c0be2942e19a58260b081ab7 Mon Sep 17 00:00:00 2001 From: lalannev <35263821+lalannev@users.noreply.github.com> Date: Tue, 9 Jan 2018 14:57:17 +0100 Subject: [PATCH] Update LegifranceJOBridge.php --- bridges/LegifranceJOBridge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridges/LegifranceJOBridge.php b/bridges/LegifranceJOBridge.php index 348be8f1..d97fcff9 100644 --- a/bridges/LegifranceJOBridge.php +++ b/bridges/LegifranceJOBridge.php @@ -42,10 +42,10 @@ class LegifranceJOBridge extends BridgeAbstract { $html = getSimpleHTMLDOM(self::URI) or $this->returnServer('Unable to download ' . self::URI); - $this->author = trim($html->find('h2.title', 0)->plaintext); + $this->author = trim($html->find('h2.titleJO', 0)->plaintext); $uri = $html->find('h2.titleELI', 0)->plaintext; $this->uri = trim(substr($uri, strpos($uri, 'https'))); - $this->timestamp = strtotime(substr($this->uri, strpos($this->uri, 'eli/jo/') + strlen('eli/jo/'))); + $this->timestamp = strtotime(substr($this->uri, strpos($this->uri, 'eli/jo/') + strlen('eli/jo/'), -5)); foreach($html->find('h3') as $section) { $subsections = $section->nextSibling()->find('h4');