From ed13bddb0695dcf40a32f70a9259fe7132094c58 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Thu, 26 Aug 2021 01:20:44 +0200 Subject: [PATCH] fix php 7.2+ deprecated function --- _prepend.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/_prepend.php b/_prepend.php index 522a43f..c9debbd 100644 --- a/_prepend.php +++ b/_prepend.php @@ -39,27 +39,27 @@ $__autoload['kutrlLog'] = dirname(__FILE__).'/inc/lib.kutrl.log.php'; # Services $__autoload['bilbolinksKutrlService'] = dirname(__FILE__).'/inc/services/class.bilbolinks.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("bilbolinks","bilbolinksKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("bilbolinks","bilbolinksKutrlService"); } ); $__autoload['bitlyKutrlService'] = dirname(__FILE__).'/inc/services/class.bitly.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("bitly","bitlyKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("bitly","bitlyKutrlService"); } ); $__autoload['customKutrlService'] = dirname(__FILE__).'/inc/services/class.custom.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("custom","customKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("custom","customKutrlService"); } ); $__autoload['defaultKutrlService'] = dirname(__FILE__).'/inc/services/class.default.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("default","defaultKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("default","defaultKutrlService"); } ); $__autoload['googlKutrlService'] = dirname(__FILE__).'/inc/services/class.googl.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("googl","googlKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("googl","googlKutrlService"); } ); $__autoload['isgdKutrlService'] = dirname(__FILE__).'/inc/services/class.isgd.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("isgd","isgdKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("isgd","isgdKutrlService"); } ); $__autoload['localKutrlService'] = dirname(__FILE__).'/inc/services/class.local.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("local","localKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("local","localKutrlService"); } ); $__autoload['shorttoKutrlService'] = dirname(__FILE__).'/inc/services/class.shortto.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("shortto","shorttoKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("shortto","shorttoKutrlService"); } ); $__autoload['trimKutrlService'] = dirname(__FILE__).'/inc/services/class.trim.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("trim","trimKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("trim","trimKutrlService"); } ); $__autoload['yourlsKutrlService'] = dirname(__FILE__).'/inc/services/class.yourls.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("yourls","yourlsKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("yourls","yourlsKutrlService"); } ); $__autoload['suprKutrlService'] = dirname(__FILE__).'/inc/services/class.supr.service.php'; -$core->addBehavior('kutrlService',create_function(null,'return array("supr","suprKutrlService");')); +$core->addBehavior('kutrlService', function() { return array("supr","suprKutrlService"); } ); # Shorten url passed through wiki functions $__autoload['kutrlWiki'] = dirname(__FILE__).'/inc/lib.wiki.kutrl.php';