Skip to content

Commit

Permalink
[+] plxAdmin::delArticle: ajout du hook plxAdminDelArticle
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane committed Mar 11, 2014
1 parent 23c928d commit 7609b33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## PLUXML 5.3.1 (sortie : xx/xx/2014) ##

[+] plxAdmin::delArticle: ajout du hook plxAdminDelArticle
BUG fix #46: Paramètre display_empty_cat non initialisé dans install.php
BUG fix #48: Erreur de parenthèse dans plxFeed sur instruction utf8_decode
BUG fix #53: plxShow::staticList : variable #static_class non traitée (contribution ReSpAwN)
Expand Down
5 changes: 5 additions & 0 deletions core/lib/class.plx.admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ public function delArticle($id) {
$resDelCom = (!file_exists(PLX_ROOT.$this->aConf['racine_commentaires'].$globComs[$i]) AND $resDelCom);
}
}

# Hook plugins
if(eval($this->plxPlugins->callHook('plxAdminDelArticle'))) return;

# On renvoi le résultat
if($resDelArt AND $resDelCom) {
# mise à jour de la liste des tags
Expand Down Expand Up @@ -951,6 +955,7 @@ public function delCommentaire($id) {
if(file_exists($filename)) {
unlink($filename);
}

if(!file_exists($filename))
return plxMsg::Info(L_COMMENT_DELETE_SUCCESSFUL);
else
Expand Down

0 comments on commit 7609b33

Please sign in to comment.