aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/common.inc.php')
-rw-r--r--include/common.inc.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/common.inc.php b/include/common.inc.php
index c8182bc5e..71aa78c44 100644
--- a/include/common.inc.php
+++ b/include/common.inc.php
@@ -133,7 +133,15 @@ else {
define('PHPWG_DOMAIN', 'piwigo.org');
}
define('PHPWG_URL', 'http://'.PHPWG_DOMAIN);
-define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext');
+
+if(isset($conf['alternative_pem_url']) and $conf['alternative_pem_url']!='')
+{
+ define('PEM_URL', $conf['alternative_pem_url']);
+}
+else
+{
+ define('PEM_URL', 'http://'.PHPWG_DOMAIN.'/ext');
+}
// language files
@@ -235,4 +243,4 @@ add_event_handler('render_comment_content', 'parse_comment_content');
add_event_handler('render_comment_author', 'strip_tags');
add_event_handler('blockmanager_register_blocks', 'register_default_menubar_blocks', EVENT_HANDLER_PRIORITY_NEUTRAL-1);
trigger_action('init');
-?> \ No newline at end of file
+?>