Skip to content

Commit

Permalink
PHP8.2 fix Constant language
Browse files Browse the repository at this point in the history
  • Loading branch information
gigamaster committed Jun 6, 2024
1 parent fe8cc43 commit ec7839c
Show file tree
Hide file tree
Showing 28 changed files with 157 additions and 421 deletions.
2 changes: 1 addition & 1 deletion html/include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ function xoops_getrank($rank_id =0, $posts = 0)
function xoops_substr($str, $start, $length, $trimmarker = '...')
{
if (!XOOPS_USE_MULTIBYTES) {
return (strlen($str) - $start <= $length) ? substr($str, $start, $length) : substr($str, $start, $length - strlen($trimmarker)) . $trimmarker;
return (strlen($str) ?? '' - $start <= $length) ? substr($str, $start, $length) : substr($str, $start, $length - strlen($trimmarker)) . $trimmarker;
}
if (function_exists('mb_internal_encoding') && @mb_internal_encoding(_CHARSET)) {
$str2 = mb_strcut($str, $start, $length - strlen($trimmarker));
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

125 changes: 0 additions & 125 deletions html/modules/ckeditor4/ckeditor/plugins/specialchar/dialogs/lang/zh.js

This file was deleted.

This file was deleted.

5 changes: 1 addition & 4 deletions html/modules/legacy/kernel/Legacy_BlockProcedure.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public function getWeight()
/**
* @public
* @breaf [Secret Agreement] Gets a value indicating whether the option form of this block needs the row to display the form.
* @remark Only block management actions should use this method, and this method should not be overridden usually.
* @remark Only block management actions should use this method, and generally this method should not be replaced.
*/
public function _hasVisibleOptionForm()
{
Expand Down Expand Up @@ -256,8 +256,6 @@ class Legacy_BlockProcedureAdapter extends Legacy_BlockProcedure
public function execute()
{



$result =& $this->_mBlock->buildBlock();

if (empty($result)) {
Expand All @@ -270,7 +268,6 @@ public function execute()
$render->setAttribute('bid', $this->_mBlock->get('bid'));



if (null == $this->_mBlock->get('template')) {
$render->setTemplateName('system_dummy.html');
$render->setAttribute('dummy_content', $result['content']);
Expand Down
Loading

0 comments on commit ec7839c

Please sign in to comment.