ajax.php
changeset 204 473cc747022a
parent 187 9dbbec5e6096
parent 194 bf0fdec102e9
child 209 8a00247d1dee
equal deleted inserted replaced
193:ebe99e82a59a 204:473cc747022a
    99         $page = new PageProcessor($paths->cpage['urlname_nons'], $paths->namespace);
    99         $page = new PageProcessor($paths->cpage['urlname_nons'], $paths->namespace);
   100         $page->send();
   100         $page->send();
   101       }
   101       }
   102       else
   102       else
   103       {
   103       {
   104         echo 'Error saving the page: '.$e;
   104         echo '<p>Error saving the page: '.$e.'</p>';
   105       }
   105       }
   106       break;
   106       break;
   107     case "protect":
   107     case "protect":
   108       echo PageUtils::protect($paths->cpage['urlname_nons'], $paths->namespace, (int)$_POST['level'], $_POST['reason']);
   108       echo PageUtils::protect($paths->cpage['urlname_nons'], $paths->namespace, (int)$_POST['level'], $_POST['reason']);
   109       break;
   109       break;