From 80d9cfe09b57793217dcb06c5c6d426b17364ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaussoin=20Timoth=C3=A9e?= Date: Wed, 12 Mar 2014 14:40:27 +0100 Subject: [PATCH] - Rename WidgetLoad() to load() in all the project --- app/assets/documents/movim.texi | 8 ++++---- app/widgets/About/About.php | 2 +- app/widgets/Account/Account.php | 2 +- app/widgets/AccountError/AccountError.php | 2 +- app/widgets/AccountNext/AccountNext.php | 2 +- app/widgets/Ack/Ack.php | 2 +- app/widgets/Admin/Admin.php | 2 +- app/widgets/AdminLogin/AdminLogin.php | 2 +- app/widgets/Avatar/Avatar.php | 2 +- app/widgets/Blog/Blog.php | 2 +- app/widgets/Bookmark/Bookmark.php | 2 +- app/widgets/Chat/Chat.php | 2 +- app/widgets/Config/Config.php | 2 +- app/widgets/ConfigData/ConfigData.php | 2 +- app/widgets/Connection/Connection.php | 2 +- app/widgets/ContactCard/ContactCard.php | 2 +- app/widgets/ContactInfo/ContactInfo.php | 2 +- app/widgets/ContactManage/ContactManage.php | 2 +- .../ContactPubsubSubscription.php | 2 +- app/widgets/ContactSummary/ContactSummary.php | 2 +- app/widgets/Discover/Discover.php | 2 +- app/widgets/Explore/Explore.php | 2 +- app/widgets/Feed/Feed.php | 2 +- app/widgets/Help/Help.php | 2 +- app/widgets/Location/Location.php | 2 +- app/widgets/Login/Login.php | 2 +- app/widgets/Media/Media.php | 2 +- app/widgets/MediaUpload/MediaUpload.php | 2 +- app/widgets/News/News.php | 2 +- app/widgets/Node/Node.php | 2 +- app/widgets/NodeAffiliations/NodeAffiliations.php | 2 +- app/widgets/NodeConfig/NodeConfig.php | 2 +- app/widgets/NodeSubscriptions/NodeSubscriptions.php | 2 +- app/widgets/Notification/Notification.php | 2 +- app/widgets/Notifs/Notifs.php | 2 +- app/widgets/Poller/Poller.php | 2 +- app/widgets/Presence/Presence.php | 2 +- app/widgets/Profile/Profile.php | 2 +- .../PubsubSubscriptionConfig/PubsubSubscriptionConfig.php | 2 +- app/widgets/Roster/Roster.php | 2 +- app/widgets/ServerNodes/ServerNodes.php | 2 +- app/widgets/Subscribe/Subscribe.php | 2 +- app/widgets/Syndication/Syndication.php | 2 +- app/widgets/System/System.php | 2 +- app/widgets/Tabs/Tabs.php | 2 +- app/widgets/Vcard/Vcard.php | 2 +- app/widgets/Vcard4/Vcard4.php | 2 +- app/widgets/Visio/Visio.php | 2 +- app/widgets/VisioExt/VisioExt.php | 2 +- app/widgets/Wall/Wall.php | 2 +- system/widget/WidgetBase.php | 4 ++-- 51 files changed, 55 insertions(+), 55 deletions(-) diff --git a/app/assets/documents/movim.texi b/app/assets/documents/movim.texi index c9c14419b..bba3ea557 100644 --- a/app/assets/documents/movim.texi +++ b/app/assets/documents/movim.texi @@ -171,7 +171,7 @@ The basic template of a Movim widget is as follows: @verbatim class MyWidget extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('incomemessage', 'onIncomingMessage'); } @@ -195,10 +195,10 @@ class MyWidget extends WidgetBase @end cartouche Note that the constructor must not be shadowed. Instead the parent class -provides a @code{WidgetLoad()} function that is called right at the end of the +provides a @code{load()} function that is called right at the end of the parent constructor. -Event handlers must be defined into @code{WidgetLoad()}. +Event handlers must be defined into @code{load()}. The @code{build()} function is called when the widget is being written onto the interface. That's typically where you should put your HTML code. @@ -214,7 +214,7 @@ An event handler is a public method that only takes one parameter: @code{$data}, which usually is an array that contains the data returned by the XMPP server. -Your handlers must be registered in @code{WidgetLoad()} using the method: +Your handlers must be registered in @code{load()} using the method: @cartouche @verbatim diff --git a/app/widgets/About/About.php b/app/widgets/About/About.php index a7be16c89..5371c9d52 100644 --- a/app/widgets/About/About.php +++ b/app/widgets/About/About.php @@ -20,6 +20,6 @@ class About extends WidgetBase { - function WidgetLoad() { + function load() { } } diff --git a/app/widgets/Account/Account.php b/app/widgets/Account/Account.php index 0eaea893f..02c1fd6bc 100644 --- a/app/widgets/Account/Account.php +++ b/app/widgets/Account/Account.php @@ -20,7 +20,7 @@ class Account extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('account.css'); $this->addjs('account.js'); diff --git a/app/widgets/AccountError/AccountError.php b/app/widgets/AccountError/AccountError.php index c3d002440..962c3e899 100644 --- a/app/widgets/AccountError/AccountError.php +++ b/app/widgets/AccountError/AccountError.php @@ -20,7 +20,7 @@ class AccountError extends WidgetBase { - function WidgetLoad() + function load() { $warning = ''; diff --git a/app/widgets/AccountNext/AccountNext.php b/app/widgets/AccountNext/AccountNext.php index 1275e0b35..09090db58 100644 --- a/app/widgets/AccountNext/AccountNext.php +++ b/app/widgets/AccountNext/AccountNext.php @@ -20,7 +20,7 @@ class AccountNext extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('accountnext.css'); $this->addjs('accountnext.js'); diff --git a/app/widgets/Ack/Ack.php b/app/widgets/Ack/Ack.php index 3cc7ea9ee..09f4c88df 100644 --- a/app/widgets/Ack/Ack.php +++ b/app/widgets/Ack/Ack.php @@ -18,7 +18,7 @@ */ class Ack extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('ack', 'onAckRequest'); diff --git a/app/widgets/Admin/Admin.php b/app/widgets/Admin/Admin.php index 9cb30cb66..e65c4dcb6 100644 --- a/app/widgets/Admin/Admin.php +++ b/app/widgets/Admin/Admin.php @@ -22,7 +22,7 @@ class Admin extends WidgetBase { private $_conf; private $_validatebutton; - function WidgetLoad() + function load() { $this->addjs('admin.js'); $this->_conf = \system\Conf::getServerConf(); diff --git a/app/widgets/AdminLogin/AdminLogin.php b/app/widgets/AdminLogin/AdminLogin.php index e891cf4e8..4b040746e 100644 --- a/app/widgets/AdminLogin/AdminLogin.php +++ b/app/widgets/AdminLogin/AdminLogin.php @@ -16,7 +16,7 @@ */ class AdminLogin extends WidgetBase { - function WidgetLoad() + function load() { diff --git a/app/widgets/Avatar/Avatar.php b/app/widgets/Avatar/Avatar.php index 4149a6b99..3cbf1b252 100644 --- a/app/widgets/Avatar/Avatar.php +++ b/app/widgets/Avatar/Avatar.php @@ -17,7 +17,7 @@ class Avatar extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('myavatarvalid', 'onAvatarPublished'); $this->registerEvent('myavatarinvalid', 'onAvatarNotPublished'); diff --git a/app/widgets/Blog/Blog.php b/app/widgets/Blog/Blog.php index 2e701e57d..f91ee5ef1 100644 --- a/app/widgets/Blog/Blog.php +++ b/app/widgets/Blog/Blog.php @@ -1,7 +1,7 @@ addcss('bookmark.css'); $this->registerEvent('bookmark', 'onBookmark'); diff --git a/app/widgets/Chat/Chat.php b/app/widgets/Chat/Chat.php index 67bd86d7c..75a9a1dc7 100644 --- a/app/widgets/Chat/Chat.php +++ b/app/widgets/Chat/Chat.php @@ -20,7 +20,7 @@ class Chat extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('chat.css'); $this->addjs('chat.js'); diff --git a/app/widgets/Config/Config.php b/app/widgets/Config/Config.php index 9f81c5143..cc9641ae6 100644 --- a/app/widgets/Config/Config.php +++ b/app/widgets/Config/Config.php @@ -20,7 +20,7 @@ class Config extends WidgetBase { - function WidgetLoad() + function load() { $this->addjs('color/jscolor.js'); $this->registerEvent('config', 'onConfig'); diff --git a/app/widgets/ConfigData/ConfigData.php b/app/widgets/ConfigData/ConfigData.php index bd27b7d2e..8ff7c9d68 100644 --- a/app/widgets/ConfigData/ConfigData.php +++ b/app/widgets/ConfigData/ConfigData.php @@ -20,7 +20,7 @@ class ConfigData extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('configdata.css'); diff --git a/app/widgets/Connection/Connection.php b/app/widgets/Connection/Connection.php index 6748da507..55e2986b9 100644 --- a/app/widgets/Connection/Connection.php +++ b/app/widgets/Connection/Connection.php @@ -15,7 +15,7 @@ class Connection extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('connection.css'); $this->registerEvent('connection', 'onConnection'); diff --git a/app/widgets/ContactCard/ContactCard.php b/app/widgets/ContactCard/ContactCard.php index 142f4b859..2930e2adf 100644 --- a/app/widgets/ContactCard/ContactCard.php +++ b/app/widgets/ContactCard/ContactCard.php @@ -21,7 +21,7 @@ class ContactCard extends WidgetCommon { - function WidgetLoad() + function load() { $this->addcss('contactcard.css'); $this->registerEvent('vcard', 'onVcard'); diff --git a/app/widgets/ContactInfo/ContactInfo.php b/app/widgets/ContactInfo/ContactInfo.php index 778916ba1..c82b289e0 100644 --- a/app/widgets/ContactInfo/ContactInfo.php +++ b/app/widgets/ContactInfo/ContactInfo.php @@ -17,7 +17,7 @@ class ContactInfo extends WidgetCommon { - function WidgetLoad() + function load() { $this->registerEvent('tune', 'onTune'); } diff --git a/app/widgets/ContactManage/ContactManage.php b/app/widgets/ContactManage/ContactManage.php index f11e1f881..d56174334 100644 --- a/app/widgets/ContactManage/ContactManage.php +++ b/app/widgets/ContactManage/ContactManage.php @@ -20,7 +20,7 @@ class ContactManage extends WidgetCommon { - function WidgetLoad() { + function load() { $this->registerEvent('rosterupdateditem', 'onRoster'); } diff --git a/app/widgets/ContactPubsubSubscription/ContactPubsubSubscription.php b/app/widgets/ContactPubsubSubscription/ContactPubsubSubscription.php index aa69aa0b3..300032ea3 100644 --- a/app/widgets/ContactPubsubSubscription/ContactPubsubSubscription.php +++ b/app/widgets/ContactPubsubSubscription/ContactPubsubSubscription.php @@ -21,7 +21,7 @@ class ContactPubsubSubscription extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('groupsubscribedlist', 'onGroupSubscribedList'); $this->registerEvent('groupsubscribedlisterror', 'onGroupSubscribedListError'); diff --git a/app/widgets/ContactSummary/ContactSummary.php b/app/widgets/ContactSummary/ContactSummary.php index 51ea54f51..ff6b52867 100644 --- a/app/widgets/ContactSummary/ContactSummary.php +++ b/app/widgets/ContactSummary/ContactSummary.php @@ -21,7 +21,7 @@ class ContactSummary extends WidgetCommon { - function WidgetLoad() + function load() { $this->addcss('contactsummary.css'); $this->registerEvent('vcard', 'onVcard'); diff --git a/app/widgets/Discover/Discover.php b/app/widgets/Discover/Discover.php index 7e7b7906d..c46c70eba 100644 --- a/app/widgets/Discover/Discover.php +++ b/app/widgets/Discover/Discover.php @@ -1,7 +1,7 @@ addcss('explore.css'); } diff --git a/app/widgets/Feed/Feed.php b/app/widgets/Feed/Feed.php index 86b58b9d3..a997c7010 100644 --- a/app/widgets/Feed/Feed.php +++ b/app/widgets/Feed/Feed.php @@ -3,7 +3,7 @@ class Feed extends WidgetCommon { private $_feedsize = 10; - function WidgetLoad() + function load() { $this->addcss('feed.css'); diff --git a/app/widgets/Help/Help.php b/app/widgets/Help/Help.php index 98bfdca10..ed12de317 100644 --- a/app/widgets/Help/Help.php +++ b/app/widgets/Help/Help.php @@ -20,7 +20,7 @@ class Help extends WidgetBase { - function WidgetLoad() { + function load() { } function build() diff --git a/app/widgets/Location/Location.php b/app/widgets/Location/Location.php index a9e26386e..791de90dc 100644 --- a/app/widgets/Location/Location.php +++ b/app/widgets/Location/Location.php @@ -20,7 +20,7 @@ class Location extends WidgetBase { - function WidgetLoad() + function load() { $this->addjs('location.js'); $this->registerEvent('locationpublished', 'onLocationPublished'); diff --git a/app/widgets/Login/Login.php b/app/widgets/Login/Login.php index 61fd8917e..0156cc755 100644 --- a/app/widgets/Login/Login.php +++ b/app/widgets/Login/Login.php @@ -20,7 +20,7 @@ if (!defined('DOCUMENT_ROOT')) die('Access denied'); class Login extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('login.css'); $this->addjs('login.js'); diff --git a/app/widgets/Media/Media.php b/app/widgets/Media/Media.php index c47950ec9..0b05f13d9 100644 --- a/app/widgets/Media/Media.php +++ b/app/widgets/Media/Media.php @@ -19,7 +19,7 @@ */ class Media extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('media.css'); $this->addjs('media.js'); diff --git a/app/widgets/MediaUpload/MediaUpload.php b/app/widgets/MediaUpload/MediaUpload.php index 196bb79ec..2859274c6 100644 --- a/app/widgets/MediaUpload/MediaUpload.php +++ b/app/widgets/MediaUpload/MediaUpload.php @@ -19,7 +19,7 @@ */ class MediaUpload extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('mediaupload.css'); } diff --git a/app/widgets/News/News.php b/app/widgets/News/News.php index ce7dc7488..00681f2ce 100644 --- a/app/widgets/News/News.php +++ b/app/widgets/News/News.php @@ -4,7 +4,7 @@ if (!defined('DOCUMENT_ROOT')) die('Access denied'); class News extends WidgetCommon { private $_feedsize = 20; - function WidgetLoad() + function load() { $this->registerEvent('opt_post', 'onStream'); $this->registerEvent('stream', 'onStream'); diff --git a/app/widgets/Node/Node.php b/app/widgets/Node/Node.php index b1656d4fb..00c26909a 100644 --- a/app/widgets/Node/Node.php +++ b/app/widgets/Node/Node.php @@ -23,7 +23,7 @@ class Node extends WidgetCommon private $role; private $_feedsize = 10; - function WidgetLoad() + function load() { $this->registerEvent('stream', 'onStream'); $this->registerEvent('nostream', 'onStream'); diff --git a/app/widgets/NodeAffiliations/NodeAffiliations.php b/app/widgets/NodeAffiliations/NodeAffiliations.php index f70aa01e3..43efe469b 100644 --- a/app/widgets/NodeAffiliations/NodeAffiliations.php +++ b/app/widgets/NodeAffiliations/NodeAffiliations.php @@ -21,7 +21,7 @@ class NodeAffiliations extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('pubsubaffiliations', 'onGroupMemberList'); $this->registerEvent('pubsubaffiliationssubmited', 'onSubmit'); diff --git a/app/widgets/NodeConfig/NodeConfig.php b/app/widgets/NodeConfig/NodeConfig.php index fe431c706..ee46e730b 100644 --- a/app/widgets/NodeConfig/NodeConfig.php +++ b/app/widgets/NodeConfig/NodeConfig.php @@ -21,7 +21,7 @@ class NodeConfig extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('pubsubconfig', 'onConfigForm'); $this->registerEvent('pubsubconfigsubmited', 'onGroupConfig'); diff --git a/app/widgets/NodeSubscriptions/NodeSubscriptions.php b/app/widgets/NodeSubscriptions/NodeSubscriptions.php index 059b3da8a..b1ad504f2 100644 --- a/app/widgets/NodeSubscriptions/NodeSubscriptions.php +++ b/app/widgets/NodeSubscriptions/NodeSubscriptions.php @@ -21,7 +21,7 @@ class NodeSubscriptions extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('pubsubsubscriptions', 'onSubscriptionsList'); $this->registerEvent('pubsubsubscriptionsssubmited', 'onSubmit'); diff --git a/app/widgets/Notification/Notification.php b/app/widgets/Notification/Notification.php index 04c5c8322..97c08d8a8 100644 --- a/app/widgets/Notification/Notification.php +++ b/app/widgets/Notification/Notification.php @@ -20,7 +20,7 @@ class Notification extends WidgetCommon { - function WidgetLoad() + function load() { $this->addcss('notification.css'); $this->addjs('notification.js'); diff --git a/app/widgets/Notifs/Notifs.php b/app/widgets/Notifs/Notifs.php index 75f3828f4..c214b3c1b 100644 --- a/app/widgets/Notifs/Notifs.php +++ b/app/widgets/Notifs/Notifs.php @@ -20,7 +20,7 @@ class Notifs extends WidgetCommon { - function WidgetLoad() + function load() { $this->addcss('notifs.css'); $this->addjs('notifs.js'); diff --git a/app/widgets/Poller/Poller.php b/app/widgets/Poller/Poller.php index 32a66975d..007d8914c 100644 --- a/app/widgets/Poller/Poller.php +++ b/app/widgets/Poller/Poller.php @@ -20,7 +20,7 @@ class Poller extends WidgetBase { - function WidgetLoad() + function load() { // We add the javascript that does the job. $this->addjs('poller.js'); diff --git a/app/widgets/Presence/Presence.php b/app/widgets/Presence/Presence.php index c5851ea87..78233cd7e 100644 --- a/app/widgets/Presence/Presence.php +++ b/app/widgets/Presence/Presence.php @@ -21,7 +21,7 @@ class Presence extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('presence.css'); $this->registerEvent('mypresence', 'onMyPresence'); diff --git a/app/widgets/Profile/Profile.php b/app/widgets/Profile/Profile.php index 207a7f80e..a77a6a437 100644 --- a/app/widgets/Profile/Profile.php +++ b/app/widgets/Profile/Profile.php @@ -23,7 +23,7 @@ class Profile extends WidgetCommon private static $status; - function WidgetLoad() + function load() { $this->addcss('profile.css'); $this->addjs('profile.js'); diff --git a/app/widgets/PubsubSubscriptionConfig/PubsubSubscriptionConfig.php b/app/widgets/PubsubSubscriptionConfig/PubsubSubscriptionConfig.php index e5ba8e137..4bec780cd 100644 --- a/app/widgets/PubsubSubscriptionConfig/PubsubSubscriptionConfig.php +++ b/app/widgets/PubsubSubscriptionConfig/PubsubSubscriptionConfig.php @@ -21,7 +21,7 @@ class PubsubSubscriptionConfig extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('groupsubscribedlist', 'onGroupSubscribedList'); $this->registerEvent('groupadded', 'onGroupAdded'); diff --git a/app/widgets/Roster/Roster.php b/app/widgets/Roster/Roster.php index 5dbcecbb4..1068b48be 100644 --- a/app/widgets/Roster/Roster.php +++ b/app/widgets/Roster/Roster.php @@ -22,7 +22,7 @@ class Roster extends WidgetBase { private $grouphtml; - function WidgetLoad() + function load() { $this->addcss('roster.css'); $this->addjs('roster.js'); diff --git a/app/widgets/ServerNodes/ServerNodes.php b/app/widgets/ServerNodes/ServerNodes.php index 7dc22c317..c052b380e 100644 --- a/app/widgets/ServerNodes/ServerNodes.php +++ b/app/widgets/ServerNodes/ServerNodes.php @@ -20,7 +20,7 @@ class ServerNodes extends WidgetCommon { - function WidgetLoad() + function load() { $this->registerEvent('discoitems', 'onDiscoItems'); $this->registerEvent('discoerror', 'onDiscoError'); diff --git a/app/widgets/Subscribe/Subscribe.php b/app/widgets/Subscribe/Subscribe.php index 5dc639e2a..00ceb6463 100644 --- a/app/widgets/Subscribe/Subscribe.php +++ b/app/widgets/Subscribe/Subscribe.php @@ -20,7 +20,7 @@ class Subscribe extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('subscribe.css'); $this->addjs('subscribe.js'); diff --git a/app/widgets/Syndication/Syndication.php b/app/widgets/Syndication/Syndication.php index 5cffd8d9c..11829f527 100644 --- a/app/widgets/Syndication/Syndication.php +++ b/app/widgets/Syndication/Syndication.php @@ -19,7 +19,7 @@ class Syndication extends WidgetBase { - function WidgetLoad() + function load() { ob_clean(); header("Content-Type: application/atom+xml; charset=UTF-8"); diff --git a/app/widgets/System/System.php b/app/widgets/System/System.php index 31de584fe..81b5cb60e 100644 --- a/app/widgets/System/System.php +++ b/app/widgets/System/System.php @@ -12,7 +12,7 @@ class System extends WidgetBase { - function WidgetLoad() + function load() { $this->view->assign('base_uri', BASE_URI); $this->view->assign('error_uri', substr_replace(Route::urlize('disconnect', 'err'), '', -3)); diff --git a/app/widgets/Tabs/Tabs.php b/app/widgets/Tabs/Tabs.php index e31eb9fbf..757983d3b 100644 --- a/app/widgets/Tabs/Tabs.php +++ b/app/widgets/Tabs/Tabs.php @@ -20,7 +20,7 @@ class Tabs extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('tabs.css'); $this->addjs('tabs.js'); diff --git a/app/widgets/Vcard/Vcard.php b/app/widgets/Vcard/Vcard.php index 04c8e4d58..1e48298af 100644 --- a/app/widgets/Vcard/Vcard.php +++ b/app/widgets/Vcard/Vcard.php @@ -20,7 +20,7 @@ class Vcard extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('myvcardvalid', 'onMyVcardReceived'); $this->registerEvent('myvcardinvalid', 'onMyVcardNotReceived'); diff --git a/app/widgets/Vcard4/Vcard4.php b/app/widgets/Vcard4/Vcard4.php index 98ba40d02..770f35227 100644 --- a/app/widgets/Vcard4/Vcard4.php +++ b/app/widgets/Vcard4/Vcard4.php @@ -17,7 +17,7 @@ class Vcard4 extends WidgetBase { - function WidgetLoad() + function load() { $this->registerEvent('myvcard4valid', 'onMyVcard4Received'); $this->registerEvent('myvcard4invalid', 'onMyVcard4NotReceived'); diff --git a/app/widgets/Visio/Visio.php b/app/widgets/Visio/Visio.php index ca4c6904d..efe801548 100644 --- a/app/widgets/Visio/Visio.php +++ b/app/widgets/Visio/Visio.php @@ -17,7 +17,7 @@ class Visio extends WidgetBase { - function WidgetLoad() + function load() { $this->addcss('visio.css'); $this->addjs('visio.js'); diff --git a/app/widgets/VisioExt/VisioExt.php b/app/widgets/VisioExt/VisioExt.php index cc1081b53..cba040797 100644 --- a/app/widgets/VisioExt/VisioExt.php +++ b/app/widgets/VisioExt/VisioExt.php @@ -20,7 +20,7 @@ class VisioExt extends WidgetBase { - function WidgetLoad() { + function load() { $this->addjs('visioext.js'); $this->registerEvent('jinglesessioninitiate', 'onSessionInitiate'); $this->registerEvent('jinglesessionterminate', 'onSessionTerminate'); diff --git a/app/widgets/Wall/Wall.php b/app/widgets/Wall/Wall.php index 01dfb1d78..e3ac9eacc 100644 --- a/app/widgets/Wall/Wall.php +++ b/app/widgets/Wall/Wall.php @@ -21,7 +21,7 @@ class Wall extends WidgetCommon { - function WidgetLoad() + function load() { $this->addjs('wall.js'); $this->registerEvent('post', 'onStream'); diff --git a/system/widget/WidgetBase.php b/system/widget/WidgetBase.php index 747b49079..de6be6115 100644 --- a/system/widget/WidgetBase.php +++ b/system/widget/WidgetBase.php @@ -72,7 +72,7 @@ class WidgetBase $this->name = get_class($this); - $this->WidgetLoad(); + $this->load(); } function t() { @@ -83,7 +83,7 @@ class WidgetBase return call_user_func_array('Route::urlize',func_get_args()); } - function WidgetLoad() + function load() { }