Some rewrites:

- max_proccesses_reach() and maxload_reached() (why no _ behind max?) are called
  both way, static and with object reference.
- this is strongly discouraged and should be avoided as its support (in PHP) may
  be dropped in future releases.
- used $a = get_app(); to encapsulate code (even when the function does
  currently the same, it may be changed later)

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2016-12-13 10:16:36 +01:00
commit 293436e5fd
27 changed files with 69 additions and 67 deletions

View file

@ -21,8 +21,7 @@ class BaseObject {
if(self::$app)
return self::$app;
global $a;
self::$app = $a;
self::$app = get_app();
return self::$app;
}

View file

@ -127,7 +127,7 @@ class Conversation extends BaseObject {
* _ false on failure
*/
public function get_template_data($conv_responses) {
global $a;
$a = get_app();
$result = array();
$i = 0;