spelling fixes

This commit is contained in:
klemens
2017-04-06 22:26:07 +02:00
parent 4d8f04d406
commit 5a95db314a
38 changed files with 88 additions and 88 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ switch($serendipity['GET']['adminAction']) {
}
// serendipity_updertEntry sets this global variable to store the entry id. Couldn't pass this
// by reference or as return value because it affects too many places inside our API and dependant
// by reference or as return value because it affects too many places inside our API and dependent
// function calls.
if (!empty($serendipity['lastSavedEntry'])) {
$entry['id'] = $serendipity['lastSavedEntry'];
+2 -2
View File
@@ -162,8 +162,8 @@ class Serendipity_Import {
*
* @access public
* @param string SQL Query
* @param ressource DB connection resource
* @return ressource SQL response
* @param resource DB connection resource
* @return resource SQL response
*/
function &nativeQuery($query, $db = false) {
global $serendipity;
+2 -2
View File
@@ -67,7 +67,7 @@ class Serendipity_Import_Blogger extends Serendipity_Import {
// Request token
$response = $req->send();
// Handle token reponse
// Handle token response
if ($response->getStatus() != '200') return;
// Extract Auth token
@@ -153,7 +153,7 @@ class Serendipity_Import_Blogger extends Serendipity_Import {
// Handle errors
if ($response->getStatus() != '200') {
echo "Error occured while trying to export the blog.";
echo "Error occurred while trying to export the blog.";
return false;
}
+3 -3
View File
@@ -33,7 +33,7 @@ $data['templatePath'] = $serendipity['templatePath'];
$data['installerHTTPPath'] = str_replace('//', '/', dirname($_SERVER['PHP_SELF']) . '/'); // since different OS handlers for enddir
/**
* Checks a return code constant if it's successfull or an error and return HTML code
* Checks a return code constant if it's successful or an error and return HTML code
*
* The diagnosis checks return codes of several PHP checks. Depending
* on the input, a specially formatted string is returned.
@@ -46,7 +46,7 @@ $data['installerHTTPPath'] = str_replace('//', '/', dirname($_SERVER['PHP_SELF']
function serendipity_installerResultDiagnose($result, $s) {
global $errorCount, $data;
if ( $result === S9Y_I_SUCCESS ) {
$data['i_success'] = true; // we dont need data here explicitely, but we keep it for possible future purposes
$data['i_success'] = true; // we don't need data here explicitly, but we keep it for possible future purposes
return '<span class="msg_success">'. $s .'</span>';
}
if ( $result === S9Y_I_WARNING ) {
@@ -69,7 +69,7 @@ if (!empty($serendipity['POST']['getstep']) && is_numeric($serendipity['POST']['
/* From configuration to install */
if ( sizeof($_POST) > 1 && $serendipity['GET']['step'] == '3' ) {
/* One problem, if the user chose to do an easy install, not all config vars has been transfered
/* One problem, if the user chose to do an easy install, not all config vars has been transferred
Therefore we fetch all config vars with their default values, and merge them with our POST data */
$config = serendipity_parseTemplate(S9Y_CONFIG_TEMPLATE);
+1 -1
View File
@@ -46,7 +46,7 @@ if ($serendipity['GET']['adminAction'] == 'save' && serendipity_checkFormToken()
if (in_array('groups', $item['flags'])) {
if (serendipity_checkPermission('adminUsersMaintainOthers')) {
// Void, no fixing neccessarry
// Void, no fixing necessarry
} elseif (serendipity_checkPermission('adminUsersMaintainSame')) {
if (!is_array($_POST[$item['var']])) {
+1 -1
View File
@@ -38,7 +38,7 @@ if (isset($_GET['serendipity']['plugin_to_move']) && isset($_GET['submit']) && s
}
/* If idx_to_move is still -1 then we never found it (shouldn't happen under normal conditions)
Also make sure the swaping idx is around */
Also make sure the swapping idx is around */
if ($idx_to_move >= 0 && (($_GET['submit'] == 'move down' && $idx_to_move < (count($plugins)-1)) || ($_GET['submit'] == 'move up' && $idx_to_move > 0))) {
/* Swap the one were moving with the one that's in the spot we're moving to */
+1 -1
View File
@@ -104,7 +104,7 @@ $data["cur_template"] = $serendipity['template'];
$data["cur_template_backend"] = $serendipity['template_backend'];
$data['cur_template_info'] = serendipity_fetchTemplateInfo($serendipity['template']);
// NOTE: config.inc.php currently only applies to frontend configuration. Backend configuration is not planned yet, and would preferrably use a "config_backend.inc.php" file!
// NOTE: config.inc.php currently only applies to frontend configuration. Backend configuration is not planned yet, and would preferably use a "config_backend.inc.php" file!
if (file_exists($serendipity['serendipityPath'] . $serendipity['templatePath'] . $data['cur_template_info']['custom_config_engine'] . '/config.inc.php')) {
serendipity_smarty_init();
$old_template_config_groups = $template_config_groups;
+2 -2
View File
@@ -12,7 +12,7 @@ define('S9Y_U_WARNING', 0);
define('S9Y_U_SUCCESS', 1);
/**
* Checks a return code constant if it's successfull or an error and return HTML code
* Checks a return code constant if it's successful or an error and return HTML code
*
* The diagnosis checks return codes of several PHP checks. Depending
* on the input, a specially formatted string is returned.
@@ -26,7 +26,7 @@ function serendipity_upgraderResultDiagnose($result, $s) {
global $errorCount, $data;
if ( $result === S9Y_U_SUCCESS ) {
$data['u_success'] = true; // we dont need data here explicitely, but we keep it for possible future purposes
$data['u_success'] = true; // we don't need data here explicitly, but we keep it for possible future purposes
return '<span class="msg_success">'. $s .'</span>';
}
+2 -2
View File
@@ -51,7 +51,7 @@ if (isset($_POST['SAVE_NEW']) && serendipity_checkFormToken()) {
if (in_array('groups', $item['flags'])) {
if (serendipity_checkPermission('adminUsersMaintainOthers')) {
// Void, no fixing neccessarry
// Void, no fixing necessarry
} elseif (serendipity_checkPermission('adminUsersMaintainSame')) {
// Check that no user may assign groups he's not allowed to.
@@ -115,7 +115,7 @@ if (isset($_POST['SAVE_EDIT']) && serendipity_checkFormToken()) {
if (in_array('groups', $item['flags'])) {
if (serendipity_checkPermission('adminUsersMaintainOthers')) {
// Void, no fixing neccessarry
// Void, no fixing necessarry
} elseif (serendipity_checkPermission('adminUsersMaintainSame')) {