Skip to content

Commit 058e899

Browse files
authored
Update generic.class.tpl to be compatible with php-8.3 (#374)
* Update generic.class.tpl to be compatible with php-8.3 get_parent_class() deprecaded from php8.3 * Update generic.class.tpl
1 parent 6c521ca commit 058e899

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

objects/generic.class.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class %%CLASSNAME%% extends PluginGenericobjectObject {
3333
static $rightname = '';
3434
3535
static function getFormURL($full=true) {
36-
return Toolbox::getItemTypeFormURL( get_parent_class() , $full) .
36+
return Toolbox::getItemTypeFormURL( parent::class , $full) .
3737
"?itemtype=".get_called_class();
3838
}
3939
static function getSearchURL($full=true) {
40-
return Toolbox::getItemTypeSearchURL( get_parent_class() , $full) .
40+
return Toolbox::getItemTypeSearchURL( parent::class , $full) .
4141
"?itemtype=".get_called_class();
4242
4343
}

0 commit comments

Comments
 (0)