Skip to content
Permalink
Browse files
[core:xpwiki] give keyword "public static" to "static function"
  • Loading branch information
nao-pon committed Aug 24, 2013
1 parent f14b0f4 commit dfc60dd9c28527d6fbf4ed9e725a2aec0c6b0723
Showing with 2 additions and 2 deletions.
  1. +2 −2 xoops_trust_path/modules/xpwiki/class/xpwiki.php
@@ -68,7 +68,7 @@ function XpWiki ($mydirname, $moddir='modules/') {

}

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

function & getInitedSingleton ($mddir) {
public static function & getInitedSingleton ($mddir) {
static $obj;
if (! isset($obj[$mddir])) {
$obj[$mddir] = new XpWiki($mddir);

0 comments on commit dfc60dd

Please sign in to comment.