This repository was archived by the owner on May 25, 2021. It is now read-only.
Commit e989ffb
committed
Significantly clean up old code
extension.json:
* Load MediaWiki\Extension\Report namespace from includes/
* Classes are now namespaced
* Increase manifest version to 2
+ Require MW>=1.31, php>=5.6
*.php:
* Namespace into MediaWiki\Extension\Report
* General cleanup and making code style more consistent
* I think I only knew about Html::rawElement, Html::openElement, and
Html::closeElement and no other Html method when I initially wrote
this. I've now made use of others e.g. Html::hidden, Html::input,
Html::textarea, Html::element
* Made some links into new-tab links
* Added classes to some tables to style them specifically
SpecialReport.php->includes/SpecialReport.php:
* Consolidate error showing into showError
SpecialHandleReports.php->includes/SpecialHandleReports.php:
* Moved HandleReportsPager into its own file
* Moved different code into different methods
* Made use of arrays of table columns instead of repeating code
* Made my comments actually useful instead of over-commenting
+includes/HandleReportsPager.php:
* So that it can be autoloaded by namespace
resources/main.css:
* Made selectors more specific
* Made reports-awaiting div more explicit
i18n/en.json:
* Username and revision ID labels are now table columns, remove :s
- Remove duplicated report-handling-nothandled string
i18n/ja.json:
* Same deal as en
+ Google translated the following missing strings:
* report-handling-handled
* report-handling-no-reports
* right-report
* right-handle-reports
* Changed report-reports-awaiting-linktext {{PLURAL:}} call
i18n/qqq.json:
* Same deal as en
+ Added descriptions for the following missing strings:
* report-handling-no-reports
* right-report
* right-handle-reports1 parent 0a98649 commit e989ffb
File tree
12 files changed
+561
-527
lines changed- i18n
- includes
- resources
12 files changed
+561
-527
lines changedThis file was deleted.
This file was deleted.
0 commit comments