Skip to content

Commit

Permalink
restore-summary
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed May 25, 2018
1 parent 8f4b503 commit 52e2dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/huggle_core/projectconfiguration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ bool ProjectConfiguration::Parse(QString config, QString *reason, WikiSite *site
this->ReportSummary = HuggleParser::ConfigurationParse("report-summary", config);
this->ReportAutoSummary = HuggleParser::ConfigurationParse("report-auto-summary", config, "This user was automatically reported by Huggle due to reverted vandalism after four warnings, please verify their"\
" contributions carefully, it may be a false positive");
//this->SpeedyTemplates = HuggleParser::ConfigurationParse_QL("speedy-options", config);
this->RestoreSummary = HuggleParser::ConfigurationParse("restore-summary", config, this->RestoreSummary);
this->SpeedyTemplates.clear();
QStringList speedies = HuggleParser::ConfigurationParse_QL("speedy-options", config);
foreach (QString speedy, speedies)
Expand Down Expand Up @@ -771,6 +771,7 @@ bool ProjectConfiguration::ParseYAML(QString yaml_src, QString *reason, WikiSite
this->RFPP_Summary = HuggleParser::YAML2String("protection-request-summary", yaml, "Request to protect page");
this->RFPP = (this->RFPP_Template.length() && this->RFPP_Regex.length());
this->RFPP_TemplateUser = HuggleParser::YAML2String("rfpp-template-user", yaml);
this->RestoreSummary = HuggleParser::YAML2String("restore-summary", yaml, this->RestoreSummary);
this->ReportUserCheckPattern = HuggleParser::YAML2String("report-user-check-patter", yaml, this->ReportUserCheckPattern);
this->WarningSummaries.clear();
this->WarningSummaries.insert(1, HuggleParser::YAML2String("warn-summary", yaml, "Message re. [[$1]]"));
Expand Down
2 changes: 1 addition & 1 deletion src/huggle_core/projectconfiguration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ namespace Huggle
QStringList NewWhitelist;

QString ReportSummary;
QString RestoreSummary = "Restored revision $1 made by $2";
QString RestoreSummary = "Restored revision $1 made by $2: $3";
bool WelcomeGood = true;

// Blocking users
Expand Down

0 comments on commit 52e2dab

Please sign in to comment.