Commit c0984200 authored by Freddy's avatar Freddy

typo in BotCore.php

Summary: Fixed a typo in BotCore.php

Reviewers: Luke, O1 Luke081515Bot, MGChecker, Morten_Haan

Reviewed By: Luke, O1 Luke081515Bot, Morten_Haan

Subscribers: Luke, Morten_Haan, MGChecker

Tags: #cygnus

Differential Revision: https://rcm-2.wmflabs.org/D477
parent e1751753
Pipeline #500 passed with stages
in 1 minute and 43 seconds
......@@ -95,7 +95,7 @@ class BotCore {
final public function initCurl($account, $job, $method = 'settings', $assert = 'bot', $maxlag = 5) {
// Make sure initCurl is called just once
static $initialized = false;
if ($initialitzed === true)
if ($initialized === true)
throw new \Exception('Cygnus is already initialized, you can\'t run initCurl or __construct again.');
$initialized = true;
// Start to set attributes
......@@ -144,7 +144,7 @@ class BotCore {
$this->setProtocol('https');
}
} catch (\Exception $e) {
throw new Expection('Error: No proper login information given: ' . $e->__toString());
throw new \Exception('Error: No proper login information given: ' . $e->__toString());
}
break;
case 'cli':
......@@ -956,7 +956,7 @@ class BotCore {
'rawcontinue' => '',
];
$result = $this->apiGet($request);
if (is_string($reault))
if (is_string($result))
return $result;
$pageID = $result['query']['pageids'][0];
$a = 0;
......
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