]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/PermissionTooltip.php
Merge pull request #11141 from urbalazs/language-names
[friendica.git] / src / Module / PermissionTooltip.php
index 89ed260f9c22e0b704f05a5ac37419a6604fcfa3..71ce2beee2aca1a11a4402e3130266bf102c56fe 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Module;
 
@@ -15,10 +34,10 @@ use Friendica\Network\HTTPException;
  */
 class PermissionTooltip extends \Friendica\BaseModule
 {
-       public static function rawContent()
+       protected function rawContent(array $request = [])
        {
-               $type = static::$parameters['type'];
-               $referenceId = static::$parameters['id'];
+               $type = $this->parameters['type'];
+               $referenceId = $this->parameters['id'];
 
                $expectedTypes = ['item', 'photo', 'event'];
                if (!in_array($type, $expectedTypes)) {