Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION

This commit is contained in:
Mikael Nordfeldth
2013-11-01 13:51:41 +01:00
parent 255943d78f
commit f110fc5c9a
104 changed files with 110 additions and 111 deletions

View File

@@ -72,9 +72,9 @@ if ($plugin) {
function getVersion()
{
// define('STATUSNET_VERSION', '0.9.1');
// define('GNUSOCIAL_VERSION', '0.9.1');
$source = file_get_contents(INSTALLDIR . '/lib/common.php');
if (preg_match('/^\s*define\s*\(\s*[\'"]STATUSNET_VERSION[\'"]\s*,\s*[\'"](.*)[\'"]\s*\)\s*;/m', $source, $matches)) {
if (preg_match('/^\s*define\s*\(\s*[\'"]GNUSOCIAL_VERSION[\'"]\s*,\s*[\'"](.*)[\'"]\s*\)\s*;/m', $source, $matches)) {
return $matches[1];
}
return 'unknown';