Last modified: 2013-10-15 09:04:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57517, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55517 - Get rid of cli.php
Get rid of cli.php
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Siebrand Mazeland
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-09 14:13 UTC by Siebrand Mazeland
Modified: 2013-10-15 09:04 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Siebrand Mazeland 2013-10-09 14:13:06 UTC
cli.php uses the non-standardly named legacy global $options. Because of this, we have to add code comments to not let CodeSniffer got mad over it.

function STDOUT( $str, $channel = null, $force = false ) {
	// @codingStandardsIgnoreStart Globals should have prefix "wg".
	global $options;
	// @codingStandardsIgnoreEnd

Code should be refactored to not use the legacy global $options.
Comment 1 Niklas Laxström 2013-10-09 14:14:43 UTC
The whole file is legacy, except perhaps language code parser.
Comment 2 Gerrit Notification Bot 2013-10-15 08:14:06 UTC
Change 89775 had a related patch set uploaded by Siebrand:
Get rid of cli.php

https://gerrit.wikimedia.org/r/89775
Comment 4 Gerrit Notification Bot 2013-10-15 09:04:31 UTC
Change 89775 merged by jenkins-bot:
Get rid of cli.php

https://gerrit.wikimedia.org/r/89775

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links