Skip to content

Commit

Permalink
[+] date_creation or date_update may be missing in the file of article (
Browse files Browse the repository at this point in the history
#822)

Co-authored-by: Jean-Pierre Pourrez <kazimentou@free.fr>
  • Loading branch information
kazimentou and bazooka07 authored May 15, 2024
1 parent ede5923 commit f3ea8a4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
7 changes: 4 additions & 3 deletions core/lib/class.plx.motor.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,13 @@ public function parseArticle($filename) {
'author' => $tmp['usrId'],
'categorie' => $tmp['catId'],
'url' => $tmp['artUrl'],
'date' => $tmp['artDate'],
'nb_com' => $this->getNbCommentaires('#^' . $tmp['artId'] . '.\d{10}.\d+.xml$#'),
'date_creation' => plxUtils::getValue($values[$iTags['date_creation'][0]]['value'], $tmp['artDate']),
'date_update' => plxUtils::getValue($values[$iTags['date_update'][0]]['value'], $tmp['artDate']),
);

foreach(array('date', 'date_creation', 'date_update',) as $field) {
$art[$field] = array_key_exists($field, $iTags) ? $values[$iTags[$field][0]]['value'] : $tmp['artDate'];
}

# Hook plugins
eval($this->plxPlugins->callHook('plxMotorParseArticle'));

Expand Down
2 changes: 1 addition & 1 deletion core/lib/config.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
const PLX_DEBUG = true;
const PLX_VERSION = '5.8.13';
const PLX_VERSION = '5.8.14';
const PLX_URL_REPO = 'https://www.pluxml.org';
const PLX_URL_VERSION = PLX_URL_REPO.'/download/latest-version.txt';

Expand Down
3 changes: 3 additions & 0 deletions readme/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## PLUXML 5.8.14 (2024/05/15)
[+] date_creation or date_update may be missing in a file of article

## PLUXML 5.8.13 (2024/04/26)
FIX Preview article is alaways displaying on the same tab or window
[+] Better view on fatal error
Expand Down
1 change: 1 addition & 0 deletions update/versions.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@
'5.8.11' => '',
'5.8.12' => '',
'5.8.13' => '',
'5.8.14' => '',
);

0 comments on commit f3ea8a4

Please sign in to comment.