From: henoheno Date: Sat, 29 Jan 2005 13:40:39 +0000 (+0900) Subject: PKWK_READONLY prohibits writing X-Git-Tag: r1_5_0_rc1~533 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=9928440d12326cf3fd7e7193e0c56d87f6cccc44;hp=36a8c53ca36872a680d44ba0a74f4dae2096dec5;p=pukiwiki%2Fpukiwiki.git PKWK_READONLY prohibits writing --- diff --git a/lib/backup.php b/lib/backup.php index 1fc4eae..dc02387 100644 --- a/lib/backup.php +++ b/lib/backup.php @@ -11,7 +11,7 @@ * @access public * @author * @create - * @version $Id: backup.php,v 1.5 2004/10/30 07:42:49 henoheno Exp $ + * @version $Id: backup.php,v 1.6 2005/01/29 13:40:39 henoheno Exp $ **/ /** @@ -24,12 +24,13 @@ * * @return Void */ + function make_backup($page, $delete = FALSE) { global $cycle, $maxage; global $do_backup, $del_backup; - if (! $do_backup) return; + if (PKWK_READONLY || ! $do_backup) return; if ($del_backup && $delete) { _backup_delete($page);