1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 21:27:25 +02:00

Fixes #1326 URL Profiles were still displaying for plugins using new url system.

This commit is contained in:
Cameron
2016-02-05 19:05:55 -08:00
parent 7276be1aeb
commit e5fbd82d5a
3 changed files with 16 additions and 8 deletions

View File

@@ -242,7 +242,7 @@ class eurl_admin_ui extends e_admin_controller_ui
foreach($eUrl as $plug=>$val)
{
$text .= "<h5>".$plug."</h5>";
$text .= "<h4>".$plug."</h4>";
$text .= "<table class='table table-striped table-bordered'>";
$text .= "<tr><th>Key</th><th>Regular Expression</th>
@@ -467,8 +467,10 @@ class eurl_admin_ui extends e_admin_controller_ui
$ret = array();
$url = e107::getUrl();
ksort($locations);
unset($locations['forum'],$locations['faqs'], $locations['pm']); // using new system so hide from here.
foreach ($locations as $module => $l)
{
$data = new e_vars(array(
@@ -485,6 +487,8 @@ class eurl_admin_ui extends e_admin_controller_ui
$ret[] = $data;
}
return $this->getUI()->moduleRows($ret);
}
@@ -703,6 +707,7 @@ class eurl_admin_form_ui extends e_admin_form_ui
}
}
if(strpos($path,'noid')!==false)
{
// $exampleUrl .= " &nbsp; &Dagger;"; //XXX Add footer - denotes more CPU required. ?

View File

@@ -154,6 +154,7 @@ class plugin_forum_rewrite_url extends eUrlConfig
public function admin()
{
// static may be used for performance
/*
e107::plugLan('forum', 'lan_forum_url');
static $admin = array(
'labels' => array(
@@ -166,6 +167,6 @@ class plugin_forum_rewrite_url extends eUrlConfig
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
);
return $admin;
return $admin;*/
}
}

View File

@@ -154,6 +154,8 @@ class plugin_forum_url extends eUrlConfig
*/
public function admin()
{
return false; // whole file deprecated.
/*
// static may be used for performance
e107::plugLan('forum', 'lan_forum_url');
static $admin = array(
@@ -166,7 +168,7 @@ class plugin_forum_url extends eUrlConfig
'form' => array(), // Under construction - additional configuration options
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
);
*/
return $admin;
}
}