Permalink
Browse files

Fixed constant declaration bug

We use a conditional in the config file so that the value is only set within the CP and doesn't assume that the BASE or AMP constants are set (they're only set on CP requests, not front-end)
  • Loading branch information...
1 parent 32eeab1 commit 0880febadba2685c9e5ff646c988d9d6c1f67dd7 @erikreagan erikreagan committed Nov 26, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 dev_docs/config/dev_docs.php
@@ -36,8 +36,13 @@
/**
* @var string URL base for inner add-on linking
+ *
+ * We use the conditional so that the config value is only set within the CP
*/
-$config['dd:mod_url_base'] = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=dev_docs';
+if (defined('BASE'))
+{
+ $config['dd:mod_url_base'] = BASE.AMP.'C=addons_modules'.AMP.'M=show_module_cp'.AMP.'module=dev_docs';
+}
/**

0 comments on commit 0880feb

Please sign in to comment.