Skip to content

Commit

Permalink
Merge pull request #177 from MissAllSunday/php7_comp
Browse files Browse the repository at this point in the history
Php7 comp
  • Loading branch information
MissAllSunday authored Aug 26, 2018
2 parents 6906025 + 57be753 commit e4e7dd1
Show file tree
Hide file tree
Showing 43 changed files with 59 additions and 55 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ Thumbs.db
/nbproject/private/
/nbproject/
/.project
/.idea
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ Tested on PHP 5.3 and 5.4, Opera12, IE8 and whatever version Firefox was when I
[size=12pt][color=purple]Changelog[/color][/size]

[code]
1.0.14 August 26, 2018
- Add support for PHP 7.

1.0.13 March 17, 2018
- Add admin setting for the general wall
- Prevent loading status and activity from users on your ignored list.
Expand Down
6 changes: 3 additions & 3 deletions Sources/Breeze/Breeze.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze
*
* @package Breeze mod
* @version 1.0.13
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -37,7 +37,7 @@ function breeze_autoloader($class_name)
class Breeze
{
public static $name = 'Breeze';
public static $version = '1.0.13';
public static $version = '1.0.14';
public static $folder = '/Breeze/';
public static $txtpattern = 'Breeze_';
public static $permissions = array('deleteComments', 'deleteOwnComments', 'deleteProfileComments', 'deleteStatus', 'deleteOwnStatus', 'deleteProfileStatus', 'postStatus', 'postComments', 'canMention', 'beMentioned');
Expand Down Expand Up @@ -385,7 +385,7 @@ public static function newRegister($regOptions, $user_id)
'type' => 'register',
'time' => time(),
'viewed' => 3, // 3 is a special case to indicate that this is a log entry, cannot be seen or unseen
'content' => function() use ($regOptions, $scripturl, $text, $scripturl, $user_id)
'content' => function() use ($regOptions, $scripturl, $user_id)
{
return '<a href="'. $scripturl .'?action=profile;u='. $user_id . '">'. $regOptions['username'] .'</a> '. $tools->text('logRegister');
},
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeAdmin
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
10 changes: 5 additions & 5 deletions Sources/Breeze/BreezeAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeAjax
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -103,7 +103,7 @@ public function call()
if (isset($call[$data->get('sa')]))
{
// This is somehow ugly but its faster.
$this->$call[$data->get('sa')]();
$this->{$call[$data->get('sa')]}();

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

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

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

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

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

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

if (!empty($data['data']))
{
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeContainer
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
4 changes: 2 additions & 2 deletions Sources/Breeze/BreezeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeController
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -83,6 +83,6 @@ protected function set()

public function get($var)
{
return $this->container->$var;
return $this->container->{$var};
}
}
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeData.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeData
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
4 changes: 2 additions & 2 deletions Sources/Breeze/BreezeDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeDispatcher
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -56,7 +56,7 @@ static function dispatch()
$object = new $controller($breezeController->get('tools'), $breezeController->get('display'), $breezeController->get('parser'), $breezeController->get('query'), $breezeController->get('notifications'), $breezeController->get('mention'), $breezeController->get('log'));

// Lets call it
$object->$method();
$object->{$method}();
}

else
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeDisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeDisplay
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeForm
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
4 changes: 2 additions & 2 deletions Sources/Breeze/BreezeLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeLog
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -55,7 +55,7 @@ public function getActivity($user)
if (in_array($entry['type'], get_class_methods(__CLASS__)))
{
$entry['content'] = json_decode($entry['content'], true);
$this->_result[$id]['content'] = $this->$entry['type']($entry);
$this->_result[$id]['content'] = $this->{$entry['type']}($entry);

// Got something?
if (empty($this->_result[$id]['content']))
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeMention.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeMention
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
6 changes: 3 additions & 3 deletions Sources/Breeze/BreezeNotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* The purpose of this file is to fetch all notifications for X user
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -167,7 +167,7 @@ public function prepare($user, $all = false)
$call = 'getNotificationByReceiver'. (!empty($all) ? 'All' : '');

// Get all the notification for this user
$this->_all = $this->_query->$call($user);
$this->_all = $this->_query->{$call}($user);

// Load the users data.
$this->loadedUsers = $this->_query->loadMinimalData($this->_all['users']);
Expand All @@ -185,7 +185,7 @@ public function prepare($user, $all = false)
$call = 'do' . ucfirst($single['type']);

// Call the right method
$this->$call($single);
$this->{$call}($single);
}

// Let them know everything went better than expected!
Expand Down
4 changes: 2 additions & 2 deletions Sources/Breeze/BreezeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeParser
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -46,7 +46,7 @@ public function display($string)
call_integration_hook('integrate_breeze_before_parser', array(&$this->s));

foreach ($temp as $t)
$this->$t();
$this->{$t}();

// ...or after?
call_integration_hook('integrate_breeze_after_parser', array(&$this->s));
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeQuery
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeTools
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeUser
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Sources/Breeze/BreezeUserInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeUserInfo
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
6 changes: 3 additions & 3 deletions Sources/Breeze/BreezeWall.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeWall
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down Expand Up @@ -114,12 +114,12 @@ public function call()
writeLog(true);

// This is somehow ugly but its faster.
$this->$call[$data->get('sa')]();
$this->{$call[$data->get('sa')]}();
}

// By default lets load the general wall
else
$this->$call['general']();
$this->{$call['general']}();

// We should see other people...
unset($call);
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/Breeze.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.template.php
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018, Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/BreezeAdmin.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeAdmin.template.php
*
* @package Breeze mod
* @version 1.0.13
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018, Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/BreezeFunctions.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* BreezeFunctions.template.php
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica González <[email protected]>
* @copyright Copyright (c) 2011 - 2018, Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.english-utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.english-utf8
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica González
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.english.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.english
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.pt-br-utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.Portuguese_Brazilian-utf8
* PT-BR Translation by: FreitasA
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.pt-br.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.Portuguese_Brazilian-utf8
* PT-BR Translation by: FreitasA
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.spanish_latin-utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.spanish_latin-utf8
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.spanish_latin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.spanish_latin
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.turkish-utf8.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.english
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
2 changes: 1 addition & 1 deletion Themes/default/languages/Breeze.turkish.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Breeze.english
*
* @package Breeze mod
* @version 1.0.11
* @version 1.0.14
* @author Jessica Gonzalez <[email protected]>
* @copyright Copyright (c) 2011 - 2018 Jessica Gonzalez
* @license //www.mozilla.org/MPL/MPL-1.1.html
Expand Down
Loading

0 comments on commit e4e7dd1

Please sign in to comment.