Merging from MOODLE_15_STABLE

- cut 'n' paste fix
This commit is contained in:
julmis
2005-06-11 11:05:29 +00:00
parent 70e31429cb
commit 86d5a066ae
+6 -23
View File
@@ -1882,31 +1882,14 @@ HTMLArea.prototype.execCommand = function(cmdID, UI, param) {
}
} catch (e) {
if (HTMLArea.is_gecko) {
<?php
$strgecko = get_string('cutpastemozilla','editor');
$lines = explode("<br />", $strgecko);
if (confirm("<?php
$strmoz = get_string('cutpastemozilla','editor');
$strmoz = preg_replace("/[\n|\r]+/", "", $strmoz);
$strmoz = str_replace('<br />', '\\n', $strmoz);
echo "var geckonotice = ";
$cnt = count($lines);
$i = 2;
foreach ($lines as $line) {
echo addslashes($strmoz);
if (empty($line)) {
continue;
}
$line = addslashes(trim($line));
if ($cnt > $i) {
echo "\"$line\\n\" + \n";
} else {
echo "\"$line\";\n";
}
$i++;
}
?>
if (confirm(geckonotice))
?>"))
window.open("http://moodle.org/mozillahelp");
}
}