Skip to content

Commit f3ea8a4

Browse files
[+] date_creation or date_update may be missing in the file of article (#822)
Co-authored-by: Jean-Pierre Pourrez <kazimentou@free.fr>
1 parent ede5923 commit f3ea8a4

4 files changed

Lines changed: 9 additions & 4 deletions

File tree

core/lib/class.plx.motor.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,12 +740,13 @@ public function parseArticle($filename) {
740740
'author' => $tmp['usrId'],
741741
'categorie' => $tmp['catId'],
742742
'url' => $tmp['artUrl'],
743-
'date' => $tmp['artDate'],
744743
'nb_com' => $this->getNbCommentaires('#^' . $tmp['artId'] . '.\d{10}.\d+.xml$#'),
745-
'date_creation' => plxUtils::getValue($values[$iTags['date_creation'][0]]['value'], $tmp['artDate']),
746-
'date_update' => plxUtils::getValue($values[$iTags['date_update'][0]]['value'], $tmp['artDate']),
747744
);
748745

746+
foreach(array('date', 'date_creation', 'date_update',) as $field) {
747+
$art[$field] = array_key_exists($field, $iTags) ? $values[$iTags[$field][0]]['value'] : $tmp['artDate'];
748+
}
749+
749750
# Hook plugins
750751
eval($this->plxPlugins->callHook('plxMotorParseArticle'));
751752

core/lib/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
const PLX_DEBUG = true;
3-
const PLX_VERSION = '5.8.13';
3+
const PLX_VERSION = '5.8.14';
44
const PLX_URL_REPO = 'https://www.pluxml.org';
55
const PLX_URL_VERSION = PLX_URL_REPO.'/download/latest-version.txt';
66

readme/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## PLUXML 5.8.14 (2024/05/15)
2+
[+] date_creation or date_update may be missing in a file of article
3+
14
## PLUXML 5.8.13 (2024/04/26)
25
FIX Preview article is alaways displaying on the same tab or window
36
[+] Better view on fatal error

update/versions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@
4343
'5.8.11' => '',
4444
'5.8.12' => '',
4545
'5.8.13' => '',
46+
'5.8.14' => '',
4647
);

0 commit comments

Comments
 (0)