try to be php 8.1 compliant
This commit is contained in:
parent
1ed4183550
commit
e6d946d62f
3 changed files with 14 additions and 7 deletions
|
@ -386,7 +386,7 @@ class ManageFeed extends dcNsProcess
|
||||||
->items(array_merge(
|
->items(array_merge(
|
||||||
dcCore::app()->adminurl->hiddenFormFields('admin.plugin.' . My::id(), [
|
dcCore::app()->adminurl->hiddenFormFields('admin.plugin.' . My::id(), [
|
||||||
'part' => 'feed',
|
'part' => 'feed',
|
||||||
'feed_id' => $v->id,
|
'feed_id' => (string) $v->id,
|
||||||
'action' => 'savefeed',
|
'action' => 'savefeed',
|
||||||
]),
|
]),
|
||||||
[
|
[
|
||||||
|
|
|
@ -52,8 +52,10 @@ class PostsFilter extends adminGenericFilterV2
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Posts users select
|
* Posts users select
|
||||||
|
*
|
||||||
|
* @return null|dcAdminFilter
|
||||||
*/
|
*/
|
||||||
public function getPostUserFilter(): ?dcAdminFilter
|
public function getPostUserFilter()
|
||||||
{
|
{
|
||||||
$users = null;
|
$users = null;
|
||||||
|
|
||||||
|
@ -83,8 +85,10 @@ class PostsFilter extends adminGenericFilterV2
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Posts categories select
|
* Posts categories select
|
||||||
|
*
|
||||||
|
* @return null|dcAdminFilter
|
||||||
*/
|
*/
|
||||||
public function getPostCategoriesFilter(): ?dcAdminFilter
|
public function getPostCategoriesFilter()
|
||||||
{
|
{
|
||||||
$categories = null;
|
$categories = null;
|
||||||
|
|
||||||
|
@ -135,8 +139,10 @@ class PostsFilter extends adminGenericFilterV2
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Posts by month select
|
* Posts by month select
|
||||||
|
*
|
||||||
|
* @return null|dcAdminFilter
|
||||||
*/
|
*/
|
||||||
public function getPostMonthFilter(): ?dcAdminFilter
|
public function getPostMonthFilter()
|
||||||
{
|
{
|
||||||
$dates = null;
|
$dates = null;
|
||||||
|
|
||||||
|
|
|
@ -770,8 +770,9 @@ class ZoneclearFeedServer
|
||||||
}
|
}
|
||||||
# Disable
|
# Disable
|
||||||
} else {
|
} else {
|
||||||
dcCore::app()->auth = null;
|
// auth on branch My goes readonly
|
||||||
dcCore::app()->auth = new dcAuth();
|
//dcCore::app()->auth = null;
|
||||||
|
//dcCore::app()->auth = new dcAuth();
|
||||||
// restore current user
|
// restore current user
|
||||||
dcCore::app()->auth->checkUser($this->user ?? '');
|
dcCore::app()->auth->checkUser($this->user ?? '');
|
||||||
}
|
}
|
||||||
|
@ -784,7 +785,7 @@ class ZoneclearFeedServer
|
||||||
*
|
*
|
||||||
* @return Parser|false The parsed feed
|
* @return Parser|false The parsed feed
|
||||||
*/
|
*/
|
||||||
public static function readFeed(string $url): false|Parser
|
public static function readFeed(string $url)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$feed_reader = new Reader();
|
$feed_reader = new Reader();
|
||||||
|
|
Loading…
Reference in a new issue