Browse files

MINOR Move definition of CMS_DIR and CMS_PATH into cms/_config.php

  • Loading branch information...
1 parent a5e9a3d commit 2f8148d0c04c25d0825cb5653825045c7c317a80 @simonwelsh simonwelsh committed Mar 23, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 _config.php
View
9 _config.php
@@ -1,6 +1,13 @@
<?php
/**
+ * - CMS_DIR: Path relative to webroot, e.g. "cms"
+ * - CMS_PATH: Absolute filepath, e.g. "/var/www/my-webroot/cms"
+ */
+define('CMS_DIR', 'cms');
+define('CMS_PATH', BASE_PATH . '/' . CMS_DIR);
+
+/**
* Extended URL rules for the CMS module
*
* @package cms
@@ -42,4 +49,4 @@
CMSMenu::remove_menu_item('CMSPageHistoryController');
CMSMenu::remove_menu_item('CMSPageReportsController');
CMSMenu::remove_menu_item('CMSPageAddController');
-CMSMenu::remove_menu_item('CMSFileAddController');
+CMSMenu::remove_menu_item('CMSFileAddController');

0 comments on commit 2f8148d

Please sign in to comment.