1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-23 16:01:39 +02:00

Issue #2610 - attempt to auto-remove legacy URL files from forum.

This commit is contained in:
Cameron
2017-05-02 13:53:31 -07:00
parent aeb4f925d2
commit c2f241d871
3 changed files with 25 additions and 3 deletions

View File

@@ -83,8 +83,6 @@ class download_setup
$bld = new eRouter;
$bld->buildGlobalConfig();
}
return $this->upgradeFilePaths($needed);

View File

@@ -98,6 +98,30 @@ class forum_setup
{
$sql = e107::getDb();
$config = e107::getPref('url_config');
if(!empty($config['forum']))
{
e107::getConfig()
->removePref('url_config/forum')
->removePref('url_locations/forum')
->save(false,true);
if(file_exists(e_PLUGIN."forum/url/url.php"))
{
@unlink(e_PLUGIN."forum/url/url.php");
@unlink(e_PLUGIN."forum/url/rewrite_url.php");
}
$bld = new eRouter;
$bld->buildGlobalConfig();
}
if($sql->isEmpty('forum_thread') === true && $sql->isTable('forum_t') && $sql->isEmpty('forum_t') === false)
{
$mes = e107::getMessage();

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<e107Plugin name="Forum" lan="LAN_PLUGIN_FORUM_NAME" version="2.0" date="2012-08-01" compatibility="2.0" installRequired="true">
<e107Plugin name="Forum" lan="LAN_PLUGIN_FORUM_NAME" version="2.1" date="2012-08-01" compatibility="2.0" installRequired="true">
<author name="e107 Inc." url="http://e107.org" />
<description lan="LAN_PLUGIN_FORUM_DESC">This plugin is a fully featured forum system</description>
<category>content</category>