plugins/SpecialGroups.php
changeset 590 03a60844c7c5
parent 573 43e7254afdb4
child 593 4f9bec0d65c1
--- a/plugins/SpecialGroups.php	Thu Jun 26 21:36:32 2008 -0400
+++ b/plugins/SpecialGroups.php	Mon Jun 30 17:20:02 2008 -0400
@@ -22,15 +22,18 @@
  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
  */
 
-$plugins->attachHook('session_started', '
+$plugins->attachHook('session_started', 'SpecialGroups_paths_init();');
+
+function SpecialGroups_paths_init()
+{
   global $paths;
-    $paths->add_page(Array(
-      \'name\'=>\'specialpage_groupcp\',
-      \'urlname\'=>\'Usergroups\',
-      \'namespace\'=>\'Special\',
-      \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\',
-      ));
-    ');
+  $paths->add_page(Array(
+    'name'=>'specialpage_groupcp',
+    'urlname'=>'Usergroups',
+    'namespace'=>'Special',
+    'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
+    ));
+}
 
 function page_Special_Usergroups()
 {