Merging in work done on Charlie with upstream
authorDan
Tue, 25 Aug 2009 01:43:40 -0400
changeset 1103 90225c988124
parent 1102 faef5e62e1e0 (diff)
parent 1101 30d8bb88572d (current diff)
child 1104 299d7e6e328b
Merging in work done on Charlie with upstream
ajax.php
--- a/ajax.php	Fri Aug 21 20:41:38 2009 -0400
+++ b/ajax.php	Tue Aug 25 01:43:40 2009 -0400
@@ -60,7 +60,7 @@
         $src = '';
       }
       
-      $auth_edit = ( $session->get_permissions('edit_page') && ( $session->get_permissions('even_when_protected') || !$paths->page_protected ) );
+      $auth_edit = ( $session->get_permissions('edit_page') && ( $session->get_permissions('even_when_protected') || !$page->ns->page_protected ) );
       $auth_wysiwyg = ( $session->get_permissions('edit_wysiwyg') );
       
       $return = array(
--- a/includes/clientside/static/editor.js	Fri Aug 21 20:41:38 2009 -0400
+++ b/includes/clientside/static/editor.js	Tue Aug 25 01:43:40 2009 -0400
@@ -441,7 +441,8 @@
   form.appendChild(preview_anchor);
   form.appendChild(preview_container);
   form.appendChild(ta_wrapper);
-  form.appendChild(tblholder);
+  if ( !readonly )
+    form.appendChild(tblholder);
   form.innerHTML += '<div style="margin: 10px 0 0 0;">' + toolbar + '</div>';
   edcon.appendChild(form);