Ejemplo n.º 1
0
 /// <summary>
 /// Gets the # of Backups that are kept in the specified wiki. Older backups are deleted after Page editing.
 /// </summary>
 /// <param name="wiki">The wiki.</param>
 /// <remarks>-1 indicates that no backups are deleted.</remarks>
 public static int GetKeptBackupNumber(string wiki)
 {
     return(SettingsTools.GetInt(GetProvider(wiki).GetSetting("KeptBackupNumber"), -1));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the max number of recent changes to log for the given wiki.
 /// </summary>
 /// <param name="wiki">The wiki.</param>
 public static int GetMaxRecentChanges(string wiki)
 {
     return(SettingsTools.GetInt(GetProvider(wiki).GetSetting("MaxRecentChanges"), 100));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the number of items displayed in pages/users lists for the given wiki.
 /// </summary>
 /// <param name="wiki">The wiki.</param>
 public static int GetListSize(string wiki)
 {
     return(SettingsTools.GetInt(GetProvider(wiki).GetSetting("ListSize"), 50));
 }