mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4356 from jakxnz/patch-1
Define function as static (line 59)
This commit is contained in:
commit
34539691f6
@ -56,7 +56,7 @@ First we need to define a callback for the shortcode.
|
|||||||
'MyShortCodeMethod' => 'HTMLText'
|
'MyShortCodeMethod' => 'HTMLText'
|
||||||
);
|
);
|
||||||
|
|
||||||
public function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) {
|
public static function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) {
|
||||||
return "<em>" . $tagName . "</em> " . $content . "; " . count($arguments) . " arguments.";
|
return "<em>" . $tagName . "</em> " . $content . "; " . count($arguments) . " arguments.";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user