1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 03:24:20 +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

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