Selaa lähdekoodia

AbstractPicoPlugin: Fix typos in exception message

Daniel Rudolf 9 vuotta sitten
vanhempi
commit
4f487b7ccf
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      lib/AbstractPicoPlugin.php

+ 3 - 3
lib/AbstractPicoPlugin.php

@@ -165,7 +165,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
                 $plugin = $this->getPlugin($pluginName);
                 $plugin = $this->getPlugin($pluginName);
             } catch (RuntimeException $e) {
             } catch (RuntimeException $e) {
                 throw new RuntimeException(
                 throw new RuntimeException(
-                    "Unable to enable plugin '" . get_called_class() . "':"
+                    "Unable to enable plugin '" . get_called_class() . "': "
                     . "Required plugin '" . $pluginName . "' not found"
                     . "Required plugin '" . $pluginName . "' not found"
                 );
                 );
             }
             }
@@ -177,13 +177,13 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface
                         $plugin->setEnabled(true, true, true);
                         $plugin->setEnabled(true, true, true);
                     } else {
                     } else {
                         throw new RuntimeException(
                         throw new RuntimeException(
-                            "Unable to enable plugin '" . get_called_class() . "':"
+                            "Unable to enable plugin '" . get_called_class() . "': "
                             . "Required plugin '" . $pluginName . "' was disabled manually"
                             . "Required plugin '" . $pluginName . "' was disabled manually"
                         );
                         );
                     }
                     }
                 } else {
                 } else {
                     throw new RuntimeException(
                     throw new RuntimeException(
-                        "Unable to enable plugin '" . get_called_class() . "':"
+                        "Unable to enable plugin '" . get_called_class() . "': "
                         . "Required plugin '" . $pluginName . "' is disabled"
                         . "Required plugin '" . $pluginName . "' is disabled"
                     );
                     );
                 }
                 }