plugins/SpecialAdmin.php
changeset 960 e74741b8360b
parent 954 995d36f39ba3
child 966 2db0975aa31a
--- a/plugins/SpecialAdmin.php	Sun May 10 14:43:00 2009 -0400
+++ b/plugins/SpecialAdmin.php	Sun May 10 14:44:37 2009 -0400
@@ -5,7 +5,7 @@
   "Plugin URI"   : "http://enanocms.org/",
   "Description"  : "plugin_specialadmin_desc",
   "Author"       : "Dan Fuhry",
-  "Version"      : "1.1.5",
+  "Version"      : "1.1.6",
   "Author URI"   : "http://enanocms.org/"
 }
 **!*/
@@ -29,19 +29,9 @@
 function SpecialAdmin_paths_init()
 {
   global $paths;
-  $paths->add_page(Array(
-    'name'=>'specialpage_administration',
-    'urlname'=>'Administration',
-    'namespace'=>'Special',
-    'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
-    ));
   
-  $paths->add_page(Array(
-    'name'=>'specialpage_manage_sidebar',
-    'urlname'=>'EditSidebar',
-    'namespace'=>'Special',
-    'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
-    ));
+  register_special_page('Administration', 'specialpage_administration');
+  register_special_page('EditSidebar', 'specialpage_manage_sidebar');
 }
 
 $plugins->attachHook('base_classes_initted', 'SpecialAdmin_include();');