1
0
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:
Cameron
2021-01-19 18:52:56 -08:00
parent ce1273f8a4
commit b19f9ffbc3
41 changed files with 312 additions and 395 deletions

View File

@@ -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']

View File

@@ -40,7 +40,7 @@ class login_shortcodes extends e_shortcode
return null;
}
return LOGINMESSAGE;
return defset('LOGINMESSAGE');
}
/* example: {LOGIN_TABLE_USERNAME} */

View File

@@ -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;
}