Skip to content

Commit e4e7dd1

Browse files
Merge pull request #177 from MissAllSunday/php7_comp
Php7 comp
2 parents 6906025 + 57be753 commit e4e7dd1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+59
-55
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ Thumbs.db
3838
/nbproject/private/
3939
/nbproject/
4040
/.project
41+
/.idea

README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ Tested on PHP 5.3 and 5.4, Opera12, IE8 and whatever version Firefox was when I
6464
[size=12pt][color=purple]Changelog[/color][/size]
6565

6666
[code]
67+
1.0.14 August 26, 2018
68+
- Add support for PHP 7.
69+
6770
1.0.13 March 17, 2018
6871
- Add admin setting for the general wall
6972
- Prevent loading status and activity from users on your ignored list.

Sources/Breeze/Breeze.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Breeze
55
*
66
* @package Breeze mod
7-
* @version 1.0.13
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html
@@ -37,7 +37,7 @@ function breeze_autoloader($class_name)
3737
class Breeze
3838
{
3939
public static $name = 'Breeze';
40-
public static $version = '1.0.13';
40+
public static $version = '1.0.14';
4141
public static $folder = '/Breeze/';
4242
public static $txtpattern = 'Breeze_';
4343
public static $permissions = array('deleteComments', 'deleteOwnComments', 'deleteProfileComments', 'deleteStatus', 'deleteOwnStatus', 'deleteProfileStatus', 'postStatus', 'postComments', 'canMention', 'beMentioned');
@@ -385,7 +385,7 @@ public static function newRegister($regOptions, $user_id)
385385
'type' => 'register',
386386
'time' => time(),
387387
'viewed' => 3, // 3 is a special case to indicate that this is a log entry, cannot be seen or unseen
388-
'content' => function() use ($regOptions, $scripturl, $text, $scripturl, $user_id)
388+
'content' => function() use ($regOptions, $scripturl, $user_id)
389389
{
390390
return '<a href="'. $scripturl .'?action=profile;u='. $user_id . '">'. $regOptions['username'] .'</a> '. $tools->text('logRegister');
391391
},

Sources/Breeze/BreezeAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeAdmin
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html

Sources/Breeze/BreezeAjax.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeAjax
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html
@@ -103,7 +103,7 @@ public function call()
103103
if (isset($call[$data->get('sa')]))
104104
{
105105
// This is somehow ugly but its faster.
106-
$this->$call[$data->get('sa')]();
106+
$this->{$call[$data->get('sa')]}();
107107

108108
// Send the response back to the browser
109109
$this->returnResponse();
@@ -447,7 +447,7 @@ public function delete()
447447
call_integration_hook('integrate_breeze_before_delete', array(&$type, &$id, &$profileOwner, &$poster));
448448

449449
// Do the query dance!
450-
$this->_query->$typeCall($id, $profileOwner);
450+
$this->_query->{$typeCall}($id, $profileOwner);
451451

452452
// Tell everyone what just happened here...
453453
call_integration_hook('integrate_breeze_after_delete', array($type, $id, $profileOwner, $poster));
@@ -681,7 +681,7 @@ public function multiNoti()
681681
$viewed = $do == 'read' ? 1 : 0;
682682

683683
// $set the "viewed" var
684-
$this->_query->$call($idNoti, $user, $viewed);
684+
$this->_query->{$call}($idNoti, $user, $viewed);
685685

686686
return $this->setResponse(array(
687687
'type' => 'success',
@@ -733,7 +733,7 @@ protected function fetchStatus()
733733
// Get the right call to the DB
734734
$call = $comingFrom == 'profile' ? 'getStatusByProfile' : 'getStatusByUser';
735735

736-
$data = $this->_query->$call($fetch, $maxIndex, $start);
736+
$data = $this->_query->{$call}($fetch, $maxIndex, $start);
737737

738738
if (!empty($data['data']))
739739
{

Sources/Breeze/BreezeContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeContainer
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html

Sources/Breeze/BreezeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeController
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html
@@ -83,6 +83,6 @@ protected function set()
8383

8484
public function get($var)
8585
{
86-
return $this->container->$var;
86+
return $this->container->{$var};
8787
}
8888
}

Sources/Breeze/BreezeData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeData
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html

Sources/Breeze/BreezeDispatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeDispatcher
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html
@@ -56,7 +56,7 @@ static function dispatch()
5656
$object = new $controller($breezeController->get('tools'), $breezeController->get('display'), $breezeController->get('parser'), $breezeController->get('query'), $breezeController->get('notifications'), $breezeController->get('mention'), $breezeController->get('log'));
5757

5858
// Lets call it
59-
$object->$method();
59+
$object->{$method}();
6060
}
6161

6262
else

Sources/Breeze/BreezeDisplay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* BreezeDisplay
55
*
66
* @package Breeze mod
7-
* @version 1.0.11
7+
* @version 1.0.14
88
* @author Jessica González <suki@missallsunday.com>
99
* @copyright Copyright (c) 2011 - 2018 Jessica González
1010
* @license //www.mozilla.org/MPL/MPL-1.1.html

0 commit comments

Comments
 (0)