Commit 1aa54c99 authored by Freddy's avatar Freddy

fixes per !1

parent fbdcfd1a
......@@ -42,7 +42,5 @@ class KennyOlympia extends Core {
file_put_contents("wikitext.txt", $textfile);
}
}
$Bot = new KennyOlympia ('LarusBot@dewiki', 'KennyOlympia'); // Aufrufen der definierten Passwortdaten in Password.php
$Bot = new KennyOlympia ('LarusBot@dewiki', 'KennyOlympia');
?>
......@@ -22,7 +22,7 @@ class WriteOlympia extends Core {
for($i = 0; $i < count($contentarray); $i++) {
$buchstabe = mb_substr($contentarray[$i], 0, 1);
$buchstabeinbsarray = false;
if(count($buchstabeinbsarray) > 0){
if(count($buchstabeinbsarray) > 0) {
for($j = 0; $j <= count($buchstabenarray); $j++) {
if($j > 0) {
if($buchstabenarray[$j]['buchstabe'] == $buchstabe) {
......@@ -47,17 +47,15 @@ class WriteOlympia extends Core {
$count = 0;
$linklistenarray = array();
for($i = 0; $i < count($buchstabenarray); $i++) {
$content = '== ' . $buchstabenarray[$i]['buchstabe'] . ' ==' . "\n";
$content = '== ' . $buchstabenarray[$i]['buchstabe'] . ' ==' . "\n";
if(isset($buchstabenarray[$i]) AND ($buchstabenarray[$i]['buchstabe'] !== "")) {
echo $i . " of " . count($buchstabenarray) . "\n";
$count = $count+1;
$count++;
$linklistenarray[] = $buchstabenarray[$i]['buchstabe'];
for($j = 0; $j < count($buchstabenarray[$i]['entry']); $j++) {
$content = $content . "# [[" . $buchstabenarray[$i]['entry'][$j] . "]]\n";
}
$this->editPage($page . "/" . $buchstabenarray[$i]['buchstabe'], $content, "Bot: Aktualisiere Rotlinkliste", 2);
} else {
}
}
$linkliste = "";
......@@ -67,7 +65,5 @@ class WriteOlympia extends Core {
$this->editPage($page , $linkliste, "Bot: Aktualisiere Rotlinkliste", 2);
}
}
$Bot = new WriteOlympia ('LarusBot@dewiki', 'WriteOlympia'); // Aufrufen der definierten Passwortdaten in Password.php
$Bot = new WriteOlympia ('LarusBot@dewiki', 'WriteOlympia');
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment