diff --git a/.gitignore b/.gitignore
index 0c0fc0042..4a04ea203 100755
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,6 @@
# we ignore all folders other than yeswiki's ones, to be able to use farm for example
-*/
+/*/
!.github/
!actions/
!cache/
diff --git a/actions/EraseSpamedCommentsAction.php b/actions/EraseSpamedCommentsAction.php
index 28f20154f..ac182fc7c 100755
--- a/actions/EraseSpamedCommentsAction.php
+++ b/actions/EraseSpamedCommentsAction.php
@@ -20,9 +20,7 @@
*
*
*/
-use YesWiki\Bazar\Controller\EntryController;
-use YesWiki\Bazar\Service\EntryManager;
-use YesWiki\Core\Service\PageManager;
+use YesWiki\Core\Controller\PageController;
use YesWiki\Core\YesWikiAction;
class EraseSpamedCommentsAction extends YesWikiAction
@@ -86,12 +84,7 @@ public function run()
// (si DeleteOrphanedPage ne convient pas, soit on créé
// une autre, soit on la modifie
echo "Effacement de : " . $page . "
\n";
- if ($wiki->services->get(EntryManager::class)->isEntry($page)){
- if($wiki->services->get(EntryController::class)->delete($page)){
- $deletedPages .= $page . ", ";
- }
- } else {
- $wiki->services->get(PageManager::class)->deleteOrphaned($page);
+ if ($wiki->services->get(PageController::class)->delete($page)){
$deletedPages .= $page . ", ";
}
}
diff --git a/actions/footer.php b/actions/footer.php
deleted file mode 100644
index a38ba7c35..000000000
--- a/actions/footer.php
+++ /dev/null
@@ -1,64 +0,0 @@
-services->get(ThemeManager::class);
-if ($themeManager->getUseFallbackTheme()) {
- $chemin_theme = 'themes/'.$themeManager->getFavoriteTheme().'/squelettes/'.$themeManager->getFavoriteSquelette();
- $file_content = file_get_contents($chemin_theme);
-} else {
- $chemin_theme = 'themes/'.$themeManager->getFavoriteTheme().'/squelettes/'.$themeManager->getFavoriteSquelette();
- if (file_exists('custom/'.$chemin_theme)) {
- $file_content = file_get_contents('custom/'.$chemin_theme);
- } else {
- $file_content = file_get_contents($chemin_theme);
- }
-}
-
-//On recupere la partie bas du template et on execute les actions wikini
-$template_decoupe = explode("{WIKINI_PAGE}", $file_content);
-$template_footer = $template_decoupe[1];
-
-if ($act = preg_match_all("/".'(\\{\\{)'.'(.*?)'.'(\\}\\})'."/is", $template_footer, $matches)) {
- $i = 0;
- $j = 0;
- foreach ($matches as $valeur) {
- foreach ($valeur as $val) {
- if (isset($matches[2][$j]) && $matches[2][$j]!='') {
- $action= $matches[2][$j];
- $template_footer = str_replace('{{'.$action.'}}', $this->Format('{{'.$action.'}}', 'action'), $template_footer);
- }
- $j++;
- }
- $i++;
- }
-}
-
-// on affiche les requetes SQL et le temps de chargement en mode debug
-if ($this->GetConfigValue('debug')=='yes') {
- $debug_log_sql_queries = '';
- $T_SQL=0;
-
- $queryLog = $this->services->get(DbService::class)->getQueryLog();
- foreach ($queryLog as $query) {
- $debug_log_sql_queries .= $query['query'].' ('.round($query['time'], 4).")
\n";
- $T_SQL = $T_SQL + $query['time'];
- }
-
- $end = microtime(true);
- $debug_log = "