Skip to Content Skip to Menu

Function mainversion() in api return empty array

  • xillibit
  • xillibit
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 2
13 years 2 months ago #170582 by xillibit
Hello,

I'am playing with uddeim api, i use mainversion() function which in the api, but this function return an empty array this is a bit annoying :( .

I have tested it on 2.4 hotfix1 and 2.5 beta and i have always an empty array.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 2 months ago #170584 by slabbi
Damn, I tried to fix that in 2.4hotfix but the problem seems to be still there.

An "unofficial" way to receive these values is to include_once "admin.shared.php" and to access the variables $checkversion, $checkhotfix, $versionstring directly.

I hope I will find a solution for 2.5 stable.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 2 months ago #170587 by slabbi
Can you try
admin.shared.php and uddeim.api.php
from the trunk, plz?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • xillibit
  • xillibit
  • OFFLINE
  • Posts: 21
  • Thanks: 4
  • Karma: 2
13 years 2 months ago #170608 by xillibit
I have get the files admin.shared.php and uddeim.api.php from the trunk but it's not better :(

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 2 months ago #170611 by slabbi
Please let us double check:

admin.uddeim.php contains:
Code:
function uddeIMgetVersionArray() { global $versionstring, $checkversion, $checkhotfix; $temp = Array(); $temp["version"] = $checkversion; // e.g. "2.1" $temp["hotfix"] = $checkhotfix; // e.g. "0" $temp["text"] = $versionstring; // e.g. "uddeIM 2.1/stable" return $temp; }

and the API
Code:
function mainVersion() { $temp = uddeIMgetVersionArray(); return $temp; }

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 2 months ago #170614 by slabbi
Damn, it is a PHP bug, see
www.php.net/manual/de/language.variables.scope.php

It is fixed in the trunk now and in a few minutes in the package. Sorry for the inconvenience.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum