]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #5662 added error message for what should be impossible condition
authorcash <cash.costello@gmail.com>
Sat, 6 Jul 2013 01:21:00 +0000 (21:21 -0400)
committercash <cash.costello@gmail.com>
Sat, 6 Jul 2013 01:21:00 +0000 (21:21 -0400)
engine/classes/ElggPlugin.php
engine/classes/ElggPluginPackage.php
languages/en.php

index 3cc90f623f798e236212d584b59fb075d06ed232..7bf6eb1df06fd6774d1c4a9e1cfffeb9e05d4442 100644 (file)
@@ -549,7 +549,7 @@ class ElggPlugin extends ElggObject {
         * Returns if the plugin is complete, meaning has all required files
         * and Elgg can read them and they make sense.
         *
-        * @todo bad name? This could be confused with isValid() from ElggPackage.
+        * @todo bad name? This could be confused with isValid() from ElggPluginPackage.
         *
         * @return bool
         */
index 20924228803416a755e3290317a76cfef16ad758..37eb4bf4d2ee6a1912884d1f88d9d3d30f59117f 100644 (file)
@@ -294,6 +294,7 @@ class ElggPluginPackage {
                        return true;
                }
 
+               $this->errorMsg = elgg_echo('unknown_error');
                return false;
        }
 
index 49e3664841d4a8d536e6d38b766592e800177337..1721865f7b525b0d26efbaa2d9dd946eb886cdbe 100644 (file)
@@ -903,6 +903,7 @@ $english = array(
        'total' => 'Total',
 
        'learnmore' => "Click here to learn more.",
+       'unknown_error' => 'Unknown error',
 
        'content' => "content",
        'content:latest' => 'Latest activity',