Skip to content
This repository
Browse code

MINOR Don't assume existence of cms/ folder in LeftAndMain->CMSVersio…

…n() (regression from earlier code)
  • Loading branch information...
commit 85a898e1d594a859a77c109e867c6de0c10f69c2 1 parent c2f7bf4
Ingo Schommer authored April 09, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  admin/code/LeftAndMain.php
2  admin/code/LeftAndMain.php
@@ -1172,7 +1172,7 @@ public function PreviewLink() {
1172 1172
 	 * @return string
1173 1173
 	 */
1174 1174
 	public function CMSVersion() {
1175  
-		if(file_exists(CMS_PATH . '/silverstripe_version')) {
  1175
+		if(defined('CMS_PATH') && file_exists(CMS_PATH . '/silverstripe_version')) {
1176 1176
 			$sapphireVersion = file_get_contents(CMS_PATH . '/silverstripe_version');
1177 1177
 		} else {
1178 1178
 			$sapphireVersion = file_get_contents(SAPPHIRE_PATH . '/silverstripe_version');

0 notes on commit 85a898e

Please sign in to comment.
Something went wrong with that request. Please try again.