Remove bogus `.md` in PHP code examples
authorMatthias Schmidt <gravatronics@live.com>
Thu, 8 Jul 2021 14:34:31 +0000 (16:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 8 Jul 2021 14:34:31 +0000 (16:34 +0200)
docs/php/api/package_installation_plugins.md

index 10665849ca544b57eaeee0eb02f6c0e4db1e9250..0af50b38fc925a8232d0f6f2b4f2dc8b5ab12c43 100644 (file)
@@ -52,9 +52,9 @@ Example:
 ```php
 <?php
 return [
-       'environment' => $data['elements']['environment'.md],
-       'eventName' => $data['elements']['eventname'.md],
-       'name' => $data['attributes']['name'.md]
+       'environment' => $data['elements']['environment'],
+       'eventName' => $data['elements']['eventname'],
+       'name' => $data['attributes']['name']
 ];
 ```
 
@@ -115,10 +115,10 @@ $statement = WCF::getDB()->prepareStatement($sql);
 foreach ($items as $item) {
        $statement->execute([
                $this->installation->getPackageID(),
-               $item['elements']['environment'.md],
-               $item['elements']['eventname'.md],
-               $item['attributes']['name'.md],
-               $item['elements']['templatename'.md]
+               $item['elements']['environment'],
+               $item['elements']['eventname'],
+               $item['attributes']['name'],
+               $item['elements']['templatename']
        ]);
 }
 ```