forked from GNUsocial/gnu-social
Using GNUSOCIAL_VERSION instead of STATUSNET_VERSION
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -30,4 +30,4 @@ END_OF_HELP;
|
||||
|
||||
require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||
|
||||
print STATUSNET_VERSION."\n";
|
||||
print GNUSOCIAL_VERSION."\n";
|
||||
|
||||
@@ -27,7 +27,7 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
|
||||
$base = INSTALLDIR;
|
||||
$encBase = escapeshellarg($base);
|
||||
|
||||
$ver = STATUSNET_VERSION;
|
||||
$ver = GNUSOCIAL_VERSION;
|
||||
|
||||
// @fixme hack
|
||||
if (preg_match('/^(\d+)\.(\d+)\.(\d+)/', $ver, $matches)) {
|
||||
|
||||
Reference in New Issue
Block a user