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

Fix: SITEURL was broken in CLI mode.

This commit is contained in:
Cameron
2015-05-17 12:26:53 -07:00
parent bf2aa9b568
commit f7eadfd588
5 changed files with 31 additions and 24 deletions

View File

@@ -35,8 +35,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
if(!empty($path))
{
$siteurl = $this->sc_siteurl();
return '<a href="'.$siteurl.'" class="sitebutton"><img src="'.$path.'" alt="'.SITENAME.'" /></a>';
return '<a href="'.SITEURL.'" class="sitebutton"><img src="'.$path.'" alt="'.SITENAME.'" /></a>';
}
}
@@ -62,8 +61,7 @@ class siteinfo_shortcodes // must match the folder name of the plugin.
function sc_sitename($parm='')
{
$url = $this->sc_siteurl();
return ($parm == 'link') ? "<a href='".$url."' title='".SITENAME."'>".SITENAME."</a>" : SITENAME;
return ($parm == 'link') ? "<a href='".SITEURL."' title='".SITENAME."'>".SITENAME."</a>" : SITENAME;
}
function sc_sitedescription()