From: Tim Düsterhus Date: Thu, 16 Dec 2021 14:31:43 +0000 (+0100) Subject: Fix the use of the `codebox()` macro in cache documentation X-Git-Tag: 5.6.final~53^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8913079308ba11b4f38121e67b651f34d549b10b;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Fix the use of the `codebox()` macro in cache documentation --- diff --git a/docs/php/api/caches_persistent-caches.md b/docs/php/api/caches_persistent-caches.md index 213073d2..09951688 100644 --- a/docs/php/api/caches_persistent-caches.md +++ b/docs/php/api/caches_persistent-caches.md @@ -27,9 +27,9 @@ that already implements the mandatory interface [ICacheBuilder](https://github.c {jinja{ codebox( -"php", -"php/api/caches/ExampleCacheBuilder.class.php", -"files/lib/system/cache/builder/ExampleCacheBuilder.class.php" + title="files/lib/system/cache/builder/ExampleCacheBuilder.class.php", + language="php", + filepath="php/api/caches/ExampleCacheBuilder.class.php", ) }} Reading data from your cache builder is quite simple and follows a consistent diff --git a/docs/php/api/caches_runtime-caches.md b/docs/php/api/caches_runtime-caches.md index 77d97cea..172e3f2e 100644 --- a/docs/php/api/caches_runtime-caches.md +++ b/docs/php/api/caches_runtime-caches.md @@ -50,7 +50,7 @@ $users = UserRuntimeCache::getInstance()->getObjects([3, 4]); ## Example {jinja{ codebox( - "php", - "php/api/caches/UserRuntimeCache.class.php", - "files/lib/system/cache/runtime/UserRuntimeCache.class.php" + title="files/lib/system/cache/runtime/UserRuntimeCache.class.php", + language="php", + filepath="php/api/caches/UserRuntimeCache.class.php", ) }}