Skip to content

Commit

Permalink
Fix plxAdmin::editArticle() and design in article.php (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: Jean-Pierre Pourrez <[email protected]>
  • Loading branch information
kazimentou and bazooka07 committed Feb 7, 2024
1 parent c04c3f3 commit 47cf52d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/admin/article.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
</div>
<?php eval($plxAdmin->plxPlugins->callHook('AdminArticleTop')); # Hook Plugins ?>
<div class="grid">
<div class="col sml-12 med-7 lrg-8">
<div class="col sml-12 med-7 lrg-9">
<fieldset>
<div class="grid">
<div class="col sml-12">
Expand Down Expand Up @@ -407,7 +407,7 @@
/* ============= sidebar ============== */

?>
<div class="sidebar col sml-12 med-5 lrg-4">
<div class="sidebar col sml-12 med-5 lrg-3">

<p><?= L_ARTICLE_STATUS ?>&nbsp;:&nbsp;
<strong>
Expand Down
2 changes: 1 addition & 1 deletion core/lib/class.plx.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ public function editArticle($content, &$id) {
$dates['update'] = date('YmdHi');
}
# Génération du fichier XML
if(empty($content['template']) or !file_exists(PLX_CORE . $this->aConf['racine_themes'] . $this->aConf['style'] . '/' . basename($content['template']))) {
if(empty($content['template']) or !file_exists(PLX_ROOT . $this->aConf['racine_themes'] . $this->aConf['style'] . '/' . basename($content['template']))) {
$content['template']= 'article.php';
}
if(empty($content['allow_com']) or $content['allow_com'] != '1') {
Expand Down

0 comments on commit 47cf52d

Please sign in to comment.