planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.mulligrubs.me/planiverse
Log | Files | Refs | README | LICENSE

commit 3d3f04ba90f6c6202213efdb53be2548c3518c11
parent 3d1747e13eab4c52db92e21944add6206058aba7
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Wed, 10 Oct 2018 17:59:10 -0700

Fix bug in accessing a property using a variable

Wrapped the variable in curly braces to force it to evaluate before
trying to access the property.

Diffstat:
Mapp/Helpers/Links.php | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/app/Helpers/Links.php b/app/Helpers/Links.php @@ -39,10 +39,10 @@ class Links || strpos($query_param, 'since_id=') === 0) { # Construct new links with the correct offset. - $this->$link['rel'] = route($route) . '?' . $query_param; + $this->{$link['rel']} = route($route) . '?' . $query_param; } } } } } -}- \ No newline at end of file +}