*
* @return string
*/
- public static function get_basepath() {
- if (isset($this)) {
- $basepath = $this->basepath;
- }
+ public function get_basepath() {
+ $basepath = $this->basepath;
if (! $basepath) {
$basepath = Config::get('system', 'basepath');
preg_replace_callback(
$expression,
function ($match) use ($item) {
- return self::fetchGuidSub($match, $item);
+ self::fetchGuidSub($match, $item);
},
$item["body"]
);
preg_replace_callback(
"&\[url=/posts/([^\[\]]*)\](.*)\[\/url\]&Usi",
function ($match) use ($item) {
- return self::fetchGuidSub($match, $item);
+ self::fetchGuidSub($match, $item);
},
$item["body"]
);
*
* @return array In simulation mode it returns the header and the first item
*/
- function import($xml, $importer, &$contact, &$hub, $simulate = false) {
+ public static function import($xml, $importer, &$contact, &$hub, $simulate = false) {
$a = get_app();