1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-28 08:39:57 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-20 19:42:09 -08:00
parent 0f4b3d29cb
commit 9880a68d4b
10 changed files with 18 additions and 22 deletions

View File

@@ -91,9 +91,6 @@ foreach($filtered as $key => $value)
// $ns->tablerender($caption, $mes->render() . $text);
$check = TRUE;
//$check = $emote -> installCheck();
$check = $emote->installCheck($one_pack);
if($check!==FALSE)
{

View File

@@ -863,7 +863,7 @@ class eurl_admin_form_ui extends e_admin_form_ui
$label = vartrue($section['label'], $index == 0 ? LAN_EURL_DEFAULT : eHelper::labelize(ltrim(strstr($location, '/'), '/')));
$cssClass = $checked ? 'e-showme' : 'e-hideme';
// $cssClass = $checked ? 'e-showme' : 'e-hideme';
$cssClass = 'e-hideme'; // always hidden for now, some interface changes could come after pre-alpha
$exampleUrl = array();

View File

@@ -578,13 +578,13 @@ class media_form_ui extends e_admin_form_ui
$pref = e107::getPref();
$options = array(
// $options = array(
// "news-image" => LAN_IMA_O_001,
// "news-bbcode" => LAN_IMA_O_002,
// "page-bbcode" => LAN_IMA_O_003,
// "featurebox-image" => LAN_IMA_O_004,
// "featurebox-bbcode" => LAN_IMA_O_005,
);
// );
$options = $pref['resize_dimensions'];
@@ -3265,10 +3265,10 @@ class media_admin_ui extends e_admin_ui
if(is_readable($xmlFile))
{
$data = file_get_contents($xmlFile);
$tmp = preg_match("/<author name=(?:'|\")([^'\"]*)/i",$data,$authorName);
$tmp = preg_match("/email=(?:'|\")([^'\"]*)/i",$data,$authorEmail);
$tmp = preg_match("/<title>(.*)<\/title>/i",$data,$title);
$tmp = preg_match("/<description>(.*)<\/description>/i",$data,$diz);
preg_match("/<author name=(?:'|\")([^'\"]*)/i",$data,$authorName);
preg_match("/email=(?:'|\")([^'\"]*)/i",$data,$authorEmail);
preg_match("/<title>(.*)<\/title>/i",$data,$title);
preg_match("/<description>(.*)<\/description>/i",$data,$diz);
return array(
'title' => $title[1],