Skip to content

Commit dfc60dd

Browse files
committed
[core:xpwiki] give keyword "public static" to "static function"
1 parent f14b0f4 commit dfc60dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xoops_trust_path/modules/xpwiki/class/xpwiki.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function XpWiki ($mydirname, $moddir='modules/') {
6868

6969
}
7070

71-
function & getSingleton ($mddir, $iniClear = true) {
71+
public static function & getSingleton ($mddir, $iniClear = true) {
7272
static $obj;
7373
if (! isset($obj[$mddir])) {
7474
$obj[$mddir] = new XpWiki($mddir);
@@ -82,7 +82,7 @@ function & getSingleton ($mddir, $iniClear = true) {
8282
return $obj[$mddir];
8383
}
8484

85-
function & getInitedSingleton ($mddir) {
85+
public static function & getInitedSingleton ($mddir) {
8686
static $obj;
8787
if (! isset($obj[$mddir])) {
8888
$obj[$mddir] = new XpWiki($mddir);

0 commit comments

Comments
 (0)