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

Issue #2846 - Lan Var cleanup

This commit is contained in:
Cameron
2017-11-06 14:15:58 -08:00
parent fb77d03a19
commit a541721eb3
4 changed files with 7 additions and 7 deletions

View File

@@ -1959,7 +1959,7 @@ function addIndexToTable($target, $indexSpec, $just_check, &$updateMessages, $op
{ {
return !$just_check; // Nothing to do it table is optional and not there return !$just_check; // Nothing to do it table is optional and not there
} }
$updateMessages[] = str_replace(array('--TABLE--','--INDEX--'),array($target,$indexSpec),LAN_UPDATE_54); $updateMessages[] = str_replace(array('[y]','[x]'),array($target,$indexSpec),LAN_UPDATE_54);
return !$just_check; // No point carrying on - return 'nothing to do' return !$just_check; // No point carrying on - return 'nothing to do'
} }
if ($sql->gen("SHOW INDEX FROM ".MPREFIX.$target)) if ($sql->gen("SHOW INDEX FROM ".MPREFIX.$target))
@@ -1978,7 +1978,7 @@ function addIndexToTable($target, $indexSpec, $just_check, &$updateMessages, $op
return 'Required to add index to '.$target; return 'Required to add index to '.$target;
} }
$sql->gen("ALTER TABLE `".MPREFIX.$target."` ADD INDEX `".$indexSpec."` (`".$indexSpec."`);"); $sql->gen("ALTER TABLE `".MPREFIX.$target."` ADD INDEX `".$indexSpec."` (`".$indexSpec."`);");
$updateMessages[] = str_replace(array('--TABLE--','--INDEX--'),array($target,$indexSpec),LAN_UPDATE_37); $updateMessages[] = str_replace(array('[y]','[x]'),array($target,$indexSpec),LAN_UPDATE_37);
} }
return FALSE; return FALSE;
} }

View File

@@ -1872,7 +1872,7 @@ class mailoutAdminClass extends e107MailManager
if($res) if($res)
$results[] = str_replace(array( $results[] = str_replace(array(
'[x]', '[x]',
'--TABLE--' '[y]'
), array( ), array(
$res, $res,
'mail_content' 'mail_content'
@@ -1888,7 +1888,7 @@ class mailoutAdminClass extends e107MailManager
if($res) if($res)
$results[] = str_replace(array( $results[] = str_replace(array(
'[x]', '[x]',
'--TABLE--' '[y]'
), array( ), array(
$res, $res,
'mail_recipients' 'mail_recipients'

View File

@@ -35,7 +35,7 @@ define("LAN_UPDATE_29", "Depending on your particular configuration, you may nee
// define("LAN_UPDATE_35", "Error modifying data in comment table"); // define("LAN_UPDATE_35", "Error modifying data in comment table");
// define("LAN_UPDATE_36", "Error deleting old field in comment table"); // define("LAN_UPDATE_36", "Error deleting old field in comment table");
define("LAN_UPDATE_37", "Add index --INDEX-- to table --TABLE--"); define("LAN_UPDATE_37", "Add index [x] to table [y]");
define("LAN_UPDATE_38", "Update front page settings"); define("LAN_UPDATE_38", "Update front page settings");
// define("LAN_UPDATE_39", "Update linkwords table"); // define("LAN_UPDATE_39", "Update linkwords table");
define("LAN_UPDATE_40", "Update newsfeeds table"); define("LAN_UPDATE_40", "Update newsfeeds table");
@@ -50,7 +50,7 @@ define("LAN_UPDATE_50", "Obsolete prefs deleted: ");
define("LAN_UPDATE_51", "Update plugin table definition: "); define("LAN_UPDATE_51", "Update plugin table definition: ");
define("LAN_UPDATE_52", "Update downloads table"); define("LAN_UPDATE_52", "Update downloads table");
define("LAN_UPDATE_53", "Update download mirror table"); define("LAN_UPDATE_53", "Update download mirror table");
define("LAN_UPDATE_54", "Missing table --TABLE-- - cannot add index --INDEX--"); define("LAN_UPDATE_54", "Missing table [y] - cannot add index [x]");
define("LAN_UPDATE_55", "Description"); define("LAN_UPDATE_55", "Description");
define("LAN_UPDATE_56", "System Update"); define("LAN_UPDATE_56", "System Update");

View File

@@ -243,7 +243,7 @@ define("LAN_MAILOUT_223", "(Used for some system-generated emails)");
define("LAN_MAILOUT_224", "Inc. Images"); define("LAN_MAILOUT_224", "Inc. Images");
define("LAN_MAILOUT_225", "Include images in email"); define("LAN_MAILOUT_225", "Include images in email");
define("LAN_MAILOUT_226", "[x] orphaned recipient record(s) removed"); define("LAN_MAILOUT_226", "[x] orphaned recipient record(s) removed");
define("LAN_MAILOUT_227", "Deleted [x] records from --TABLE--"); define("LAN_MAILOUT_227", "Deleted [x] records from [y]");
define("LAN_MAILOUT_228", "[x] anomalies in mail_content corrected; records: [y]"); define("LAN_MAILOUT_228", "[x] anomalies in mail_content corrected; records: [y]");
define("LAN_MAILOUT_229", "Email ID [x] put on hold"); define("LAN_MAILOUT_229", "Email ID [x] put on hold");
define("LAN_MAILOUT_230", "Error holding email with ID [x]"); define("LAN_MAILOUT_230", "Error holding email with ID [x]");