mirror of
https://github.com/e107inc/e107.git
synced 2025-07-24 00:12:24 +02:00
Issue #2610 - attempt to auto-remove legacy URL files from forum.
This commit is contained in:
@@ -83,8 +83,6 @@ class download_setup
|
|||||||
$bld = new eRouter;
|
$bld = new eRouter;
|
||||||
$bld->buildGlobalConfig();
|
$bld->buildGlobalConfig();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->upgradeFilePaths($needed);
|
return $this->upgradeFilePaths($needed);
|
||||||
|
@@ -98,6 +98,30 @@ class forum_setup
|
|||||||
{
|
{
|
||||||
$sql = e107::getDb();
|
$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)
|
if($sql->isEmpty('forum_thread') === true && $sql->isTable('forum_t') && $sql->isEmpty('forum_t') === false)
|
||||||
{
|
{
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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" />
|
<author name="e107 Inc." url="http://e107.org" />
|
||||||
<description lan="LAN_PLUGIN_FORUM_DESC">This plugin is a fully featured forum system</description>
|
<description lan="LAN_PLUGIN_FORUM_DESC">This plugin is a fully featured forum system</description>
|
||||||
<category>content</category>
|
<category>content</category>
|
||||||
|
Reference in New Issue
Block a user