Changeset 27371


Ignore:
Timestamp:
Feb 13, 2014, 11:26:17 PM (7 years ago)
Author:
rvelices
Message:

web service always return pwg version (allow in the future mobile apps to maintain compatibility)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions/pwg.php

    r26837 r27371  
    140140function ws_getVersion($params, &$service)
    141141{
    142   global $conf;
    143 
    144   if ($conf['show_version'] or is_admin())
    145   {
    146     return PHPWG_VERSION;
    147   }
    148   else
    149   {
    150     return new PwgError(403, 'Forbidden');
    151   }
     142  return PHPWG_VERSION;
    152143}
    153144
     
    336327  list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
    337328  $res['current_datetime'] = $dbnow;
    338 
     329  $res['version'] = PHPWG_VERSION;
    339330  return $res;
    340331}
Note: See TracChangeset for help on using the changeset viewer.