aboutsummaryrefslogtreecommitdiff
path: root/engine/classes/ElggPluginPackage.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 16:55:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 16:55:32 +0000
commitaedc7ea1f86b9fd33f83c71f3e3de2f317b933d6 (patch)
tree8172cb6b55fd48ea3b50493c57b5c3609695b237 /engine/classes/ElggPluginPackage.php
parenteb0c8dbebe95cb1ee4ff8cfb177978a4ad45b6d5 (diff)
downloadelgg-aedc7ea1f86b9fd33f83c71f3e3de2f317b933d6.tar.gz
elgg-aedc7ea1f86b9fd33f83c71f3e3de2f317b933d6.tar.bz2
Fixes typo in ElggPluginPackage constructor: https://github.com/lorea/Elgg/commit/ba3fab541d87af535e6c6c33096591e4fd30ba57
git-svn-id: http://code.elgg.org/elgg/trunk@8848 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/classes/ElggPluginPackage.php')
-rw-r--r--engine/classes/ElggPluginPackage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/classes/ElggPluginPackage.php b/engine/classes/ElggPluginPackage.php
index 59d5a95bf..b2ec20549 100644
--- a/engine/classes/ElggPluginPackage.php
+++ b/engine/classes/ElggPluginPackage.php
@@ -106,7 +106,7 @@ class ElggPluginPackage {
} else {
// this is a plugin id
// strict plugin names
- if (preg_match('/[^a-z0-9\.\-_]/i', $id)) {
+ if (preg_match('/[^a-z0-9\.\-_]/i', $plugin)) {
throw new PluginException(elgg_echo('PluginException:InvalidID', array($plugin)));
}