mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Don't assume existence of cms/ folder in LeftAndMain->CMSVersion() (regression from earlier code)
This commit is contained in:
parent
c2f7bf4dcf
commit
85a898e1d5
@ -1172,7 +1172,7 @@ class LeftAndMain extends Controller implements PermissionProvider {
|
||||
* @return string
|
||||
*/
|
||||
public function CMSVersion() {
|
||||
if(file_exists(CMS_PATH . '/silverstripe_version')) {
|
||||
if(defined('CMS_PATH') && file_exists(CMS_PATH . '/silverstripe_version')) {
|
||||
$sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
|
||||
} else {
|
||||
$sapphireVersion = file_get_contents(SAPPHIRE_PATH . '/silverstripe_version');
|
||||
|
Loading…
Reference in New Issue
Block a user