瀏覽代碼

tec: Make FreshRSS_Share::register public (#5578)

I don't know why the visibility of this method has changed, but it's
essential to register custom shares as extensions.

Reference: a13a20de20702d86df904e16560c52bfe7c90aad
berumuron 2 年之前
父節點
當前提交
eb57f490db
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Models/Share.php

+ 1 - 1
app/Models/Share.php

@@ -15,7 +15,7 @@ class FreshRSS_Share {
 	 * @param array{'type':string,'url':string,'transform'?:array<callable>|array<string,array<callable>>,'field'?:string,'help'?:string,'form'?:'simple'|'advanced',
 	 *	'method'?:'GET'|'POST','HTMLtag'?:'button','deprecated'?:bool} $share_options is an array defining the share option.
 	 */
-	private static function register(array $share_options): void {
+	public static function register(array $share_options): void {
 		$type = $share_options['type'];
 		if (isset(self::$list_sharing[$type])) {
 			return;