ajax.php
changeset 194 bf0fdec102e9
parent 184 d74ff822acc9
child 195 eec079676fe7
child 204 473cc747022a
child 207 861807631f70
equal deleted inserted replaced
192:9237767a23ae 194:bf0fdec102e9
   114         $page = new PageProcessor($paths->cpage['urlname_nons'], $paths->namespace);
   114         $page = new PageProcessor($paths->cpage['urlname_nons'], $paths->namespace);
   115         $page->send();
   115         $page->send();
   116       }
   116       }
   117       else
   117       else
   118       {
   118       {
   119         echo 'Error saving the page: '.$e;
   119         echo '<p>Error saving the page: '.$e.'</p>';
   120       }
   120       }
   121       break;
   121       break;
   122     case "protect":
   122     case "protect":
   123       echo PageUtils::protect($paths->cpage['urlname_nons'], $paths->namespace, (int)$_POST['level'], $_POST['reason']);
   123       echo PageUtils::protect($paths->cpage['urlname_nons'], $paths->namespace, (int)$_POST['level'], $_POST['reason']);
   124       break;
   124       break;