renamed sys_waitAfterNewWeblog to sys_waitAfterNewSite
This commit is contained in:
parent
e20e427951
commit
e0ada6893c
3 changed files with 6 additions and 6 deletions
|
@ -18,8 +18,8 @@ function isAddSiteDenied(usr) {
|
|||
// check if user has to wait some more time before creating a new weblog
|
||||
if (usr.sites.count()) {
|
||||
var lastCreation = Math.floor((new Date() - usr.sites.get(0).createtime)/86400000);
|
||||
if (lastCreation < root.sys_waitAfterNewWeblog)
|
||||
return (getError("siteCreateWait",new Array(root.sys_waitAfterNewWeblog,root.sys_waitAfterNewWeblog - lastCreation)));
|
||||
if (lastCreation < root.sys_waitAfterNewSite)
|
||||
return (getError("siteCreateWait",new Array(root.sys_waitAfterNewSite,root.sys_waitAfterNewSite - lastCreation)));
|
||||
}
|
||||
}
|
||||
return null;
|
||||
|
|
|
@ -96,7 +96,7 @@ function sys_minMemberAge_macro(param) {
|
|||
* after having created a weblog before being allowed to create a new one
|
||||
*/
|
||||
|
||||
function sys_waitAfterNewWeblog_macro(param) {
|
||||
function sys_waitAfterNewSite_macro(param) {
|
||||
// this macro is allowed just for sysadmins
|
||||
if (!isUserSysAdmin())
|
||||
return;
|
||||
|
@ -106,9 +106,9 @@ function sys_waitAfterNewWeblog_macro(param) {
|
|||
if (i < 7 || !(i%7))
|
||||
options[i] = i;
|
||||
}
|
||||
renderDropDownBox("sys_waitAfterNewWeblog",options,this.sys_waitAfterNewWeblog,"----");
|
||||
renderDropDownBox("sys_waitAfterNewSite",options,this.sys_waitAfterNewSite,"----");
|
||||
} else
|
||||
res.write(this.sys_waitAfterNewWeblog);
|
||||
res.write(this.sys_waitAfterNewSite);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td valign="top" nowrap="nowrap">Time between two<br>new weblogs:</td>
|
||||
<td><% root.sys_waitAfterNewWeblog as="editor" %><span class="small"> days<br />This is the amount of time a user has to wait before creating a new weblog.</span></td>
|
||||
<td><% root.sys_waitAfterNewSite as="editor" %><span class="small"> days<br />This is the amount of time a user has to wait before creating a new weblog.</span></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Reference in a new issue