Got live reauth working again in the admin cp
authorDan Fuhry <dan@enanocms.org>
Tue, 03 Aug 2010 21:00:10 -0400
changeset 1286 14be93201c10
parent 1285 4d511be69a5f
child 1287 2c95a2c538c8
Got live reauth working again in the admin cp
includes/namespaces/special.php
--- a/includes/namespaces/special.php	Tue Aug 03 20:49:20 2010 -0400
+++ b/includes/namespaces/special.php	Tue Aug 03 21:00:10 2010 -0400
@@ -62,8 +62,16 @@
 				'delvote_ips' => '',
 				'wiki_mode' => 2,
 				'page_exists' => $this->exists,
-				'page_format' => getConfig('default_page_format', 'wikitext')
+				'page_format' => getConfig('default_page_format', 'wikitext'),
+				'require_admin' => $this->namespace === 'Admin'
 			);
+		
+		$code = $plugins->setHook('ns_special_cdata');
+		foreach ( $code as $cmd )
+		{
+			eval($cmd);
+		}
+		
 		$this->cdata = Namespace_Default::bake_cdata($this->cdata);
 		
 		$this->title =& $this->cdata['name'];