From: Mikael Nordfeldth <mmn@hethane.se>
Date: Fri, 7 Nov 2014 15:23:47 +0000 (+0100)
Subject: FavoritePlugin calls CommandInterpreter::split_arg
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aedfb6a8dd2ae1c01a1bf9cbde2b7bfb60006973;p=quix0rs-gnu-social.git

FavoritePlugin calls CommandInterpreter::split_arg

The last commit found a bug that a previous move of the FavCommand
into a plugin called $this in FavoritePlugin instead of the instance
of a CommandInterpreter class. Now that call is statically defined in
CommandInterpreter and appropriately called in FavoritePlugin.
---

diff --git a/plugins/Favorite/FavoritePlugin.php b/plugins/Favorite/FavoritePlugin.php
index d06153965e..a9a95f80cc 100644
--- a/plugins/Favorite/FavoritePlugin.php
+++ b/plugins/Favorite/FavoritePlugin.php
@@ -393,7 +393,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
             if (empty($arg)) {
                 $result = null;
             } else {
-                list($other, $extra) = $this->split_arg($arg);
+                list($other, $extra) = CommandInterpreter::split_arg($arg);
                 if (!empty($extra)) {
                     $result = null;
                 } else {