Permalink
Browse files

[xupdate] support `MyTextSanitizer::sGetInstance()`

  • Loading branch information...
nao-pon committed Apr 14, 2015
1 parent 2aebb30 commit 9fa34e2df1e9c4fb3d8cf9a8c7e9a0f7849ab693
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/xupdate/class/Root.class.php
@@ -40,7 +40,7 @@ public function __construct()
//adump($this->mod_config);
// mytextsanitizer ToDo --> Cube Style ??
- $this->myts =& MyTextSanitizer::getInstance();
+ (method_exists('MyTextSanitizer', 'sGetInstance') and $this->myts =& MyTextSanitizer::sGetInstance()) || $this->myts =& MyTextSanitizer::getInstance();
// set temp_path
$this->params['temp_dirname'] = trim( strrchr( trim($this->mod_config['temp_path'],'/'), '/'), '/') ;

0 comments on commit 9fa34e2

Please sign in to comment.