Permalink
Browse files

Merge pull request #73 from simonwelsh/cms_dir

MINOR Move definition of CMS_DIR and CMS_PATH into cms/_config.php
  • Loading branch information...
2 parents a5e9a3d + 2f8148d commit ecee3cc7721bd7baed74994ac595950b2ecb8fe1 @halkyon halkyon committed Mar 23, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 _config.php
View
@@ -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 ecee3cc

Please sign in to comment.