Permalink
Browse files

fix parse error

  • Loading branch information...
1 parent 51ea3c7 commit 1a2cf0387273f69cc40a643cb0e7213ea5c741a2 @michield michield committed Jan 8, 2017
@@ -50,10 +50,10 @@ public function __construct(
}
private function getProvider() {
- return new League\OAuth2\Client\Provider\Google([
+ return new League\OAuth2\Client\Provider\Google(array(
'clientId' => $this->oauthClientId,
'clientSecret' => $this->oauthClientSecret
- ]);
+ ));
}
private function getGrant()
@@ -35,7 +35,7 @@ class PHPlistMailer extends PHPMailer
public $Hello = '';
public $timeStamp = '';
- public function PHPlistMailer($messageid, $email, $inBlast = true, $exceptions = false)
+ public function __construct($messageid, $email, $inBlast = true, $exceptions = false)
{
parent::__construct($exceptions);
parent::SetLanguage('en', dirname(__FILE__) . '/PHPMailer/language/');
@@ -2241,7 +2241,7 @@ class timer
public $start;
public $previous = 0;
- public function timer()
+ public function __construct()
{
$now = gettimeofday();
$this->start = $now['sec'] * 1000000 + $now['usec'];
@@ -12,7 +12,7 @@ class date
public $months = array();
public $useTime = false;
- public function date($name = '')
+ public function __construct($name = '')
{
$this->days = array(
$GLOBALS['I18N']->get('Sunday'),
@@ -6,7 +6,7 @@ class phplistTest
public $purpose = 'Test to be extended to test all kinds of things';
public $userdata = array();
- public function phplistTest()
+ public function __construct()
{
/*
$this->userdata = Sql_Fetch_Assoc_Query(sprintf('select * from %s where email = "%s"',$GLOBALS['tables']['user'],$GLOBALS['developer_email']));
@@ -11,7 +11,7 @@ class UIPanel
private $content = '';
private $id = '';
- public function UIPanel($header, $content, $nav = '')
+ public function __construct($header, $content, $nav = '')
{
$this->header = $header;
$this->nav = $nav;
@@ -75,7 +75,7 @@ class WebblerListing
private $suppressGreenline = false;
private $buttonsOutsideTable = false;
- public function WebblerListing($title, $help = '')
+ public function __construct($title, $help = '')
{
$this->title = strip_tags($title);
$this->help = strip_tags($help);
@@ -707,7 +707,7 @@ class DomTab
public $tabs = array();
public $domtabcluster = '';
- public function DomTab($name = '')
+ public function __construct($name = '')
{
$this->domtabcluster = $name;
}
@@ -944,7 +944,7 @@ class pageInfo
private $infocontent = '';
private $addhide = true;
- public function pageInfo($id = '')
+ public function __construct($id = '')
{
$this->ajaxed = isset($_GET['ajaxed']);
$this->noteid = $id;
@@ -1064,7 +1064,7 @@ class button
protected $linkhtml = '';
protected $js = '';
- public function button($link, $linktext, $title = '')
+ public function __construct($link, $linktext, $title = '')
{
$this->link = $link;
$this->linktext = $linktext;
@@ -1106,7 +1106,7 @@ class confirmButton extends button
protected $linkhtml = '';
protected $js;
- public function confirmButton($confirmationtext, $link, $linktext, $title = '', $class = 'confirm')
+ public function __construct($confirmationtext, $link, $linktext, $title = '', $class = 'confirm')
{
if (!isset($GLOBALS['confirmButtonCount'])) {
$GLOBALS['confirmButtonCount'] = 0;
@@ -1129,7 +1129,7 @@ class buttonGroup
private $buttons = array();
private $topbutton = '';
- public function buttonGroup($topbutton = '')
+ public function __construct($topbutton = '')
{
$this->topbutton = $topbutton;
}
@@ -1180,7 +1180,7 @@ class WebblerShader
public $display = 'block';
public $initialstate = 'open';
- public function WebblerShader($name)
+ public function __construct($name)
{
$this->name = $name;
if (!isset($GLOBALS['shadercount'])) {
@@ -163,7 +163,7 @@ class phplist_I18N
private $hasDB = false;
private $lan = array();
- public function phplist_I18N()
+ public function __construct()
{
$this->basedir = dirname(__FILE__) . '/locale/';
$this->defaultlanguage = $GLOBALS['default_system_language'];
@@ -5,9 +5,9 @@ class sendpage extends phplistTest
public $name = 'Send a Webpage';
public $purpose = 'Testing that sending a webpage works ok';
- public function sendpage()
+ public function __construct()
{
- parent::phplistTest();
+ parent::__construct();
}
public function runtest()

0 comments on commit 1a2cf03

Please sign in to comment.