Skip to content
Snippets Groups Projects
Commit ca6e4a67 authored by bgm's avatar bgm
Browse files

Merge branch 'static-method' into 'master'

avoid fatal error when calling non-static method statically

See merge request !9
parents 09307291 64cfb8a5
Branches
Tags 1.0
1 merge request!9avoid fatal error when calling non-static method statically
......@@ -10,7 +10,7 @@ class CRM_Eventics_Utils_Helper {
*
* Based on https://zaclee.net/php/formatting-google-calendar-links-with-timezones-and-php-carbon
*/
function generateGoogleCalendarLink($title, $begin, $end, $location, $details, $timezone) {
public static function generateGoogleCalendarLink($title, $begin, $end, $location, $details, $timezone) {
$queryString = sprintf(
'action=%s&text=%s&details=%s&location=%s&dates=%s/%s&ctz=%s',
// action
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment