1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Issue #1870 , Issue #3420 Login template/shortcode issue. Possible fix.

This commit is contained in:
Cameron
2018-09-12 10:29:08 -07:00
parent 775cf26b98
commit 184edd3193
3 changed files with 4 additions and 4 deletions

View File

@@ -85,7 +85,7 @@ if(!isset($LOGIN_TABLE_FOOTER))
$LOGIN_TEMPLATE['page']['header'] = "
<div id='login-template'>
<div class='center'>
{LOGO=login}
{LOGO: login}
</div>";
$LOGIN_TEMPLATE['page']['body'] = '

View File

@@ -93,7 +93,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
return $this->sc_logo($parm);
}
function sc_logo($parm = '')
function sc_logo($parm = array())
{
if(is_string($parm))
{
@@ -105,7 +105,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
$logopref = e107::getConfig('core')->get('sitelogo');
$logop = $tp->replaceConstants($logopref);
if($parm == 'login' || isset($parm['login'])) // Login Page. BC fix.
if(isset($parm['login'])) // Login Page. BC fix.
{
if(!empty($logopref) && is_readable($logop))

View File

@@ -232,7 +232,7 @@
}
}
if(!empty($_GET['for'])) // leave in upload directory if no category given.
{