Skip to content

Commit

Permalink
MINOR Don't assume existence of cms/ folder in LeftAndMain->CMSVersio…
Browse files Browse the repository at this point in the history
…n() (regression from earlier code)
  • Loading branch information
chillu committed Apr 9, 2012
1 parent c2f7bf4 commit 85a898e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/code/LeftAndMain.php
Expand Up @@ -1172,7 +1172,7 @@ public function PreviewLink() {
* @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');
Expand Down

0 comments on commit 85a898e

Please sign in to comment.