Skip to content

Commit e543aae

Browse files
committed
removed unnecessary sprintf
1 parent a57d6b1 commit e543aae

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

class/Files/Classes/ClassFiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ private function getFunctionForm($module, $table, $fieldId, $fieldInForm, $field
306306
$getForm .= $this->pc->getPhpCodeTernaryOperator('permissionUpload', $checkRight, 'true', 'false', "\t\t");
307307
}
308308
$getForm .= $this->pc->getPhpCodeCommentLine('Title', '', "\t\t");
309-
$getForm .= $this->pc->getPhpCodeTernaryOperator('title', '$this->isNew()', "\sprintf({$language}{$stuTableSoleName}_ADD)", "\sprintf({$language}{$stuTableSoleName}_EDIT)", "\t\t");
309+
$getForm .= $this->pc->getPhpCodeTernaryOperator('title', '$this->isNew()', "{$language}{$stuTableSoleName}_ADD", "{$language}{$stuTableSoleName}_EDIT", "\t\t");
310310
$getForm .= $this->pc->getPhpCodeCommentLine('Get Theme', 'Form', "\t\t");
311311
$getForm .= $this->xc->getXcXoopsLoad('XoopsFormLoader', "\t\t");
312312
$getForm .= $this->cxc->getClassXoopsThemeForm('form', 'title', 'form', 'action', 'post');

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- uninstall with bak-file creation (mamba/goffy)
2121
- module update to php8 (mamba)
2222
- fix bug in type cast (liomj/goffy)
23+
- removed unnecessary sprintf (goffy)
2324

2425
<h5>3.5.1 Beta 1 [NOT RELEASED]</h5> Dev: XOOPS 2.5.11, PHP 7.4.25, PHP 8.0.12, PHP 8.1.0 Beta 4
2526
- semantic versioning (mamba)

0 commit comments

Comments
 (0)