mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
Frontend scripts tests. (may break some things)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
class admin_shortcodes
|
||||
class admin_shortcodes extends e_shortcode
|
||||
{
|
||||
|
||||
const ADMIN_NAV_HOME = 'enav_home'; // Must match with admin_template. ie. {ADMIN_NAVIGATION=enav_home} and $E_ADMIN_NAVIGATION['button_enav_home']
|
||||
|
@@ -40,7 +40,7 @@ class login_shortcodes extends e_shortcode
|
||||
return null;
|
||||
}
|
||||
|
||||
return LOGINMESSAGE;
|
||||
return defset('LOGINMESSAGE');
|
||||
}
|
||||
|
||||
/* example: {LOGIN_TABLE_USERNAME} */
|
||||
|
@@ -952,9 +952,9 @@ class news_shortcodes extends e_shortcode
|
||||
function sc_news_video($parm=null)
|
||||
{
|
||||
$tmp = $this->handleMultiple($parm,'video');
|
||||
$file = $tmp['file'];
|
||||
$file = varset($tmp['file']);
|
||||
|
||||
if($video = e107::getParser()->toVideo($file, array('class'=> 'news-video-'.$tmp['count'])))
|
||||
if($video = e107::getParser()->toVideo($file, array('class'=> 'news-video-'.varset($tmp['count']))))
|
||||
{
|
||||
return $video;
|
||||
}
|
||||
|
Reference in New Issue
Block a user