Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
hannob committed Apr 23, 2024
1 parent 0a92d85 commit a49d0dd
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ software.

We release the source code of this software to the public in
hope it will be useful for someone. Possibly it will be not
because the underlaying database is not well documented and
because the underlying database is not well documented and
to have an effect, there is a need for a bunch of shell-/
python-Scripts. For the moment, those scripts are not released
because they may contain confidential information and we have
Expand Down
12 changes: 6 additions & 6 deletions inc/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function config($key, $localonly = false)
if (array_key_exists($key, $config)) {
return $config[$key];
} else {
logger(LOG_ERR, "inc/base", "config", "Request to read nonexistant config option »{$key}«.");
logger(LOG_ERR, "inc/base", "config", "Request to read nonexistent config option »{$key}«.");
}
return null;
}
Expand Down Expand Up @@ -227,19 +227,19 @@ function output($arg)
$output .= $arg;
}

function footnote($explaination)
function footnote($explanation)
{
global $footnotes;
if (!isset($footnotes) || !is_array($footnotes)) {
$footnotes = [];
}
$fnid = array_search($explaination, $footnotes);
$fnid = array_search($explanation, $footnotes);
DEBUG($footnotes);
if ($fnid === false) {
DEBUG("Footnote »{$explaination}« is not in footnotes!");
$footnotes[] = $explaination;
DEBUG("Footnote »{$explanation}« is not in footnotes!");
$footnotes[] = $explanation;
}
$fnid = array_search($explaination, $footnotes);
$fnid = array_search($explanation, $footnotes);
return str_repeat('*', ($fnid + 1));
}

Expand Down
2 changes: 1 addition & 1 deletion modules/systemuser/include/useraccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function get_account_details($uid, $customerno = 0)
$args = [":uid" => $uid, ":customerno" => $customerno];
$result = db_query("SELECT uid,username,name,shell,server,quota,erstellungsdatum,passwordlogin FROM system.useraccounts WHERE kunde=:customerno AND uid=:uid", $args);
if ($result->rowCount() == 0) {
system_failure("Cannot find the requestes useraccount (for this customer).");
system_failure("Cannot find the requested useraccount (for this customer).");
}
return $result->fetch();
}
Expand Down
4 changes: 2 additions & 2 deletions themes/default/page-login.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@

<?php if ($footnotes) {
echo '<div class="footnotes">';
foreach ($footnotes as $num => $explaination) {
echo '<p>' . str_repeat('*', $num + 1) . ': ' . $explaination . '</p>';
foreach ($footnotes as $num => $explanation) {
echo '<p>' . str_repeat('*', $num + 1) . ': ' . $explanation . '</p>';
}
echo '</div>';
} ?>
Expand Down
4 changes: 2 additions & 2 deletions themes/default/page.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@

<?php if ($footnotes) {
echo '<div class="footnotes">';
foreach ($footnotes as $num => $explaination) {
echo '<p>' . str_repeat('*', $num + 1) . ': ' . $explaination . '</p>';
foreach ($footnotes as $num => $explanation) {
echo '<p>' . str_repeat('*', $num + 1) . ': ' . $explanation . '</p>';
}
echo '</div>';
} ?>
Expand Down

0 comments on commit a49d0dd

Please sign in to comment.