mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
MINOR Override CMSMain->CMSVersion() to check for cms/silverstripe_version
This commit is contained in:
parent
593754b12c
commit
8e6a38559e
@ -1546,6 +1546,23 @@ JS;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the version number of this application.
|
||||||
|
* Uses the subversion path information in <mymodule>/silverstripe_version
|
||||||
|
* (automacially replaced $URL$ placeholder).
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function CMSVersion() {
|
||||||
|
$sapphireVersionFile = file_get_contents(BASE_PATH . '/sapphire/silverstripe_version');
|
||||||
|
$cmsVersionFile = file_get_contents(BASE_PATH . '/cms/silverstripe_version');
|
||||||
|
|
||||||
|
$sapphireVersion = $this->versionFromVersionFile($sapphireVersionFile);
|
||||||
|
$cmsVersion = $this->versionFromVersionFile($cmsVersionFile);
|
||||||
|
|
||||||
|
return "cms: $cmsVersion, sapphire: $sapphireVersion";
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provide the permission codes used by LeftAndMain.
|
* Provide the permission codes used by LeftAndMain.
|
||||||
* Can't put it on LeftAndMain since that's an abstract base class.
|
* Can't put it on LeftAndMain since that's an abstract base class.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user