diff --git a/e107_admin/eurl.php b/e107_admin/eurl.php index 3086b6e55..11b46c555 100644 --- a/e107_admin/eurl.php +++ b/e107_admin/eurl.php @@ -478,6 +478,20 @@ class eurl_admin_ui extends e_admin_controller_ui ->set('url_locations', $locations) ->save(); + if(!empty($_POST['eurl_config']['gallery'])) // disabled, so disable e_url on index also. + { + $val = ($_POST['eurl_config']['gallery'] === 'plugin') ? 0 : 'gallery'; + e107::getConfig()->setPref('e_url_list/gallery', $val)->save(false,true,false); + } + + if(!empty($_POST['eurl_config']['news'])) // disabled, so disable e_url on index also. + { + $val = ($_POST['eurl_config']['news'] === 'core') ? 0 : 'news'; + e107::getConfig()->setPref('e_url_list/news', $val)->save(false,true,false); + } + + // var_dump($_POST['eurl_config']); + eRouter::clearCache(); e107::getCache()->clearAll('content'); // clear content - it may be using old url scheme. diff --git a/e107_plugins/gallery/e_url.php b/e107_plugins/gallery/e_url.php index 7c0018009..977731dac 100644 --- a/e107_plugins/gallery/e_url.php +++ b/e107_plugins/gallery/e_url.php @@ -30,7 +30,7 @@ class gallery_url // plugin-folder + '_url' 'alias' => 'gallery', 'sef' => '{alias}', // used by e107::url(); to create a url from the db table. 'redirect' => '{e_PLUGIN}gallery/gallery.php', // file-path of what to load when the regex returns true. - + 'legacy' => '{e_PLUGIN}gallery/gallery.php', );