This commit is contained in:
Jean-Christian Denis 2022-12-17 11:56:18 +01:00
parent 4908f533f3
commit 06c84ef2b0
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
3 changed files with 18 additions and 20 deletions

View file

@ -24,9 +24,9 @@ $this->registerModule(
'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_ADMIN,
]),
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/saba',
'details' => 'https://plugins.dotaddict.org/dc2/details/saba',
'repository' => 'https://raw.githubusercontent.com/JcDenis/saba/master/dcstore.xml',
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/saba',
'details' => 'https://plugins.dotaddict.org/dc2/details/saba',
'repository' => 'https://raw.githubusercontent.com/JcDenis/saba/master/dcstore.xml',
]
);

View file

@ -68,7 +68,7 @@ class pubSaba
];
}
public static function urlHandlerBeforeGetData($_ctx)
public static function urlHandlerBeforeGetData($_)
{
$options = tplSaba::getSabaDefaultPostsOptions();
@ -97,7 +97,7 @@ class pubSaba
$posts = dcCore::app()->blog->getPosts($params);
if ($posts->isEmpty()) { // hack: don't breack context
$params = ['limit' => $params['limit']];
$posts = dcCore::app()->blog->getPosts($params);
$posts = dcCore::app()->blog->getPosts($params);
}
dcCore::app()->ctx->post_params = $params;
dcCore::app()->ctx->posts = $posts;
@ -230,7 +230,7 @@ class pubSaba
# decoupe un peu plus la recherche
$splits = preg_split("#[\s//,-_]+#", $p['search']);
if (!$splits) {
$splits = explode(',', $p['search']);
$splits = explode(',', $p['search']);
}
foreach ($splits as $sentence) {
$AND = [];

View file

@ -1,17 +1,15 @@
<?php
# -- BEGIN LICENSE BLOCK ----------------------------------
#
# This file is part of saba, a plugin for Dotclear 2.
#
# Copyright (c) 2009-2021 Jean-Christian Denis and contributors
#
# Licensed under the GPL version 2.0 license.
# A copy of this license is available in LICENSE file or at
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
#
# -- END LICENSE BLOCK ------------------------------------
/**
* @brief saba, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_RC_PATH')) {
return null;
}