From: moodler Date: Tue, 9 Jan 2007 09:20:55 +0000 (+0000) Subject: Strrrrrrict when editing language files X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5a34b76be07b27ba927ee81ac59a9c88a6f35436;p=moodle.git Strrrrrrict when editing language files --- diff --git a/admin/lang.php b/admin/lang.php index 2e45fe2d34..f7e5e5e4d6 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -171,7 +171,7 @@ } else { $fileismissing = 1; // notify(get_string("filemissing", "", "$langdir/$file")); - $o .= '
'.get_string("filemissing", "", "$langdir/$file").'

'; + $o .= '
'.get_string("filemissing", "", "$langdir/$file").'

'; $string = array(); } @@ -247,7 +247,7 @@ if (!lang_make_directory($langbase) ){ error('ERROR: Could not create base lang directory ' . $langbase); } else { - echo '
Created directory '. + echo '
Created directory '. $langbase .'
'."
\n"; } } @@ -255,17 +255,17 @@ if (!lang_make_directory($langdir)) { error('ERROR: Could not create directory '.$langdir); } else { - echo '
Created directory '. + echo '
Created directory '. $langdir .'
'."
\n"; } } if ($uselocal && !file_exists($locallangdir)) { if (!lang_make_directory($locallangdir)) { - echo '
ERROR: Could not create directory '. + echo '
ERROR: Could not create directory '. $locallangdir .'
'."
\n"; $uselocal = 0; } else { - echo '
Created directory '. + echo '
Created directory '. $locallangdir .'
'."
\n"; } } @@ -338,14 +338,14 @@ error_reporting(0); if (!file_exists("$saveto/$currentfile")) { if (!@touch("$saveto/$currentfile")) { - print_heading(get_string("filemissing", "", "$saveto/$currentfile"), "center", 4, "error"); + print_heading(get_string("filemissing", "", "$saveto/$currentfile"), '', 4, 'error'); } else { - print_heading($strfilecreated, "center", 4, "notifysuccess"); + print_heading($strfilecreated, '', 4, 'notifysuccess'); } } if ($currentlang == "en_utf8" && !$uselocal) { $editable = false; - print_heading($streditennotallowed, 'center', 4); + print_heading($streditennotallowed, '', 4); } elseif ($f = fopen("$saveto/$currentfile","r+")) { $editable = true; fclose($f); @@ -355,9 +355,9 @@ } error_reporting($CFG->debug); - print_heading("$currentfile", "center", 4); + print_heading("$currentfile", "", 4); if (LANG_DISPLAY_MISSING_LINKS && $editable) { - print_heading(''.$strgotofirst.'', "center", 4); + print_heading(''.$strgotofirst.'', "", 4); } unset($string); @@ -383,7 +383,7 @@ echo "
"; echo '
'; } - echo ""; + echo "
"; $linescounter = 0; $missingcounter = 0; foreach ($enstring as $key => $envalue) { @@ -399,8 +399,8 @@ $envalue = str_replace("\\","",$envalue); // Delete all slashes echo "\n\n".''; - echo ''."\n"; - echo ''."\n"; + echo ''."\n"; + echo ''."\n"; // Missing array keys are not bugs here but missing strings error_reporting(E_ALL ^ E_NOTICE); @@ -450,7 +450,7 @@ } if ($editable) { - echo ''; } else { - echo ''; + echo ''; } + echo ''."\n"; } if ($editable) { - echo ''; } - echo '
'.$key.''.$envalue.''.$key.''.$envalue.''. $missingprev . $missingtarget."\n"; + echo ''. $missingprev . $missingtarget."\n"; if (isset($string[$key])) { $valuelen = strlen($value); } else { @@ -472,24 +472,25 @@ echo $missingnext . ''.$value.''.$value.'
 
'; + echo '
 
'; echo ''; echo ' '; echo ' '; echo ' '; echo '
'; + echo ''; echo '
'; echo '
'; } else { // no $currentfile specified - print_heading($strchoosefiletoedit, "center", 4); + print_heading($strchoosefiletoedit, "", 4); } }