From aedc7ea1f86b9fd33f83c71f3e3de2f317b933d6 Mon Sep 17 00:00:00 2001 From: cash Date: Sat, 26 Mar 2011 16:55:32 +0000 Subject: 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 --- engine/classes/ElggPluginPackage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } -- cgit v1.2.3