Update code comments that point to 1.18 to point to 1.19
This commit is contained in:
parent
a5ca3e12f4
commit
ead9055a62
18 changed files with 40 additions and 46 deletions
|
|
@ -1128,7 +1128,7 @@ class Article extends Page {
|
|||
|
||||
/**
|
||||
* Removes trackback record for current article from trackbacks table
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function deletetrackback() {
|
||||
return Action::factory( 'deletetrackback', $this )->show();
|
||||
|
|
@ -1154,7 +1154,7 @@ class Article extends Page {
|
|||
|
||||
/**
|
||||
* Mark this particular edit/page as patrolled
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function markpatrolled() {
|
||||
Action::factory( 'markpatrolled', $this )->show();
|
||||
|
|
@ -1162,7 +1162,7 @@ class Article extends Page {
|
|||
|
||||
/**
|
||||
* User-interface handler for the "watch" action.
|
||||
* Requires Request to pass a token as of 1.19.
|
||||
* Requires Request to pass a token as of 1.18.
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function watch() {
|
||||
|
|
@ -1184,7 +1184,7 @@ class Article extends Page {
|
|||
|
||||
/**
|
||||
* User interface handler for the "unwatch" action.
|
||||
* Requires Request to pass a token as of 1.19.
|
||||
* Requires Request to pass a token as of 1.18.
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function unwatch() {
|
||||
|
|
@ -1243,7 +1243,7 @@ class Article extends Page {
|
|||
* Output a redirect back to the article.
|
||||
* This is typically used after an edit.
|
||||
*
|
||||
* @deprecated in 1.19; call $wgOut->redirect() directly
|
||||
* @deprecated in 1.18; call $wgOut->redirect() directly
|
||||
* @param $noRedir Boolean: add redirect=no
|
||||
* @param $sectionAnchor String: section to redirect to, including "#"
|
||||
* @param $extraQuery String: extra query params
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class ChangesList extends ContextSource {
|
|||
* Fetch an appropriate changes list class for the main context
|
||||
* This first argument used to be an User object.
|
||||
*
|
||||
* @deprecated in 1.19; use newFromContext() instead
|
||||
* @deprecated in 1.18; use newFromContext() instead
|
||||
* @param $unused Unused
|
||||
* @return ChangesList|EnhancedChangesList|OldChangesList derivative
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ $wgConf = new SiteConfiguration;
|
|||
/** @endcond */
|
||||
|
||||
/** MediaWiki version number */
|
||||
$wgVersion = '1.19alpha';
|
||||
$wgVersion = '1.18';
|
||||
|
||||
/** Name of the site. It must be changed in LocalSettings.php */
|
||||
$wgSitename = 'MediaWiki';
|
||||
|
|
@ -2409,9 +2409,9 @@ $wgEdititis = false;
|
|||
|
||||
/**
|
||||
* Better directionality support (bug 6100 and related).
|
||||
* Removed in 1.19, still kept here for LiquidThreads backwards compatibility.
|
||||
* Removed in 1.18, still kept here for LiquidThreads backwards compatibility.
|
||||
*
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
$wgBetterDirectionality = true;
|
||||
|
||||
|
|
@ -2983,7 +2983,7 @@ $wgArticleCountMethod = null;
|
|||
|
||||
/**
|
||||
* Backward compatibility setting, will set $wgArticleCountMethod if it is null.
|
||||
* @deprecated since 1.19; use $wgArticleCountMethod instead
|
||||
* @deprecated since 1.18; use $wgArticleCountMethod instead
|
||||
*/
|
||||
$wgUseCommaCount = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -926,7 +926,7 @@ function wfGetLangObj( $langcode = false ) {
|
|||
* Old function when $wgBetterDirectionality existed
|
||||
* Removed in core, kept in extensions for backwards compat.
|
||||
*
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
* @return Language
|
||||
*/
|
||||
function wfUILang() {
|
||||
|
|
@ -2948,7 +2948,7 @@ function wfBaseConvert( $input, $sourceBase, $destBase, $pad = 1, $lowercase = t
|
|||
*
|
||||
* @param $name String
|
||||
* @param $p Array: parameters
|
||||
* @deprecated since 1.18, warnings in 1.19, removal in 1.20
|
||||
* @deprecated since 1.18, warnings in 1.18, removal in 1.20
|
||||
*/
|
||||
function wfCreateObject( $name, $p ) {
|
||||
wfDeprecated( __FUNCTION__ );
|
||||
|
|
@ -3331,7 +3331,7 @@ function wfWaitForSlaves( $maxLag = false, $wiki = false ) {
|
|||
|
||||
/**
|
||||
* Used to be used for outputting text in the installer/updater
|
||||
* @deprecated since 1.18, warnings in 1.19, remove in 1.20
|
||||
* @deprecated since 1.18, warnings in 1.18, remove in 1.20
|
||||
*/
|
||||
function wfOut( $s ) {
|
||||
wfDeprecated( __METHOD__ );
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class HTMLForm {
|
|||
/**
|
||||
* Build a new HTMLForm from an array of field attributes
|
||||
* @param $descriptor Array of Field constructs, as described above
|
||||
* @param $context RequestContext available since 1.18, will become compulsory in 1.19.
|
||||
* @param $context RequestContext available since 1.18, will become compulsory in 1.18.
|
||||
* Obviates the need to call $form->setTitle()
|
||||
* @param $messagePrefix String a prefix to go in front of default messages
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1986,7 +1986,7 @@ class Linker {
|
|||
}
|
||||
|
||||
/**
|
||||
* @since 1.19
|
||||
* @since 1.18
|
||||
*/
|
||||
class DummyLinker {
|
||||
|
||||
|
|
|
|||
|
|
@ -1834,7 +1834,7 @@ class OutputPage {
|
|||
* @return String or null: message or null if $code is not in the list of
|
||||
* messages
|
||||
*
|
||||
* @deprecated since 1.19 Use HttpStatus::getMessage() instead.
|
||||
* @deprecated since 1.18 Use HttpStatus::getMessage() instead.
|
||||
*/
|
||||
public static function getStatusMessage( $code ) {
|
||||
wfDeprecated( __METHOD__ );
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
* version are hardcoded here
|
||||
*/
|
||||
function wfPHPVersionError( $type ){
|
||||
$mwVersion = '1.19';
|
||||
$mwVersion = '1.18';
|
||||
$phpVersion = PHP_VERSION;
|
||||
$message = "MediaWiki $mwVersion requires at least PHP version 5.2.3, you are using PHP $phpVersion.";
|
||||
if( $type == 'index.php' ) {
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function wfGetForwardedFor() {
|
|||
* Returns the browser/OS data from the request header
|
||||
* Note: headers are spoofable
|
||||
*
|
||||
* @deprecated in 1.19; use $wgRequest->getHeader( 'User-Agent' ) instead.
|
||||
* @deprecated in 1.18; use $wgRequest->getHeader( 'User-Agent' ) instead.
|
||||
* @return string
|
||||
*/
|
||||
function wfGetAgent() {
|
||||
|
|
|
|||
|
|
@ -671,7 +671,7 @@ class SpecialPage {
|
|||
* Shortcut to get user's language
|
||||
*
|
||||
* @return Language
|
||||
* @since 1.19
|
||||
* @since 1.18
|
||||
*/
|
||||
public function getLang() {
|
||||
return $this->getContext()->getLang();
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ class MediaWiki {
|
|||
/**
|
||||
* $wgArticle is deprecated, do not use it. This will possibly be removed
|
||||
* entirely in 1.20 or 1.21
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
global $wgArticle;
|
||||
$wgArticle = $article;
|
||||
|
|
@ -253,7 +253,7 @@ class MediaWiki {
|
|||
/**
|
||||
* Create an Article object of the appropriate class for the given page.
|
||||
*
|
||||
* @deprecated in 1.19; use Article::newFromTitle() instead
|
||||
* @deprecated in 1.18; use Article::newFromTitle() instead
|
||||
* @param $title Title
|
||||
* @param $context RequestContext
|
||||
* @return Article object
|
||||
|
|
|
|||
|
|
@ -2075,7 +2075,7 @@ class WikiPage extends Page {
|
|||
* @todo This is a shitty interface function. Kill it and replace the
|
||||
* other shitty functions like doEditUpdates and such so it's not needed
|
||||
* anymore.
|
||||
* @deprecated since 1.19, use doEditUpdates()
|
||||
* @deprecated since 1.18, use doEditUpdates()
|
||||
*/
|
||||
public function createUpdates( $rev ) {
|
||||
global $wgUser;
|
||||
|
|
@ -2524,7 +2524,7 @@ class WikiPage extends Page {
|
|||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function quickEdit( $text, $comment = '', $minor = 0 ) {
|
||||
global $wgUser;
|
||||
|
|
@ -2532,7 +2532,7 @@ class WikiPage extends Page {
|
|||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function viewUpdates() {
|
||||
global $wgUser;
|
||||
|
|
@ -2540,7 +2540,7 @@ class WikiPage extends Page {
|
|||
}
|
||||
|
||||
/*
|
||||
* @deprecated since 1.19
|
||||
* @deprecated since 1.18
|
||||
*/
|
||||
public function useParserCache( $oldid ) {
|
||||
global $wgUser;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class WatchAction extends FormAction {
|
|||
* @param User $title User for whom the action is going to be performed
|
||||
* @param string $action Optionally override the action to 'unwatch'
|
||||
* @return string Token
|
||||
* @since 1.19
|
||||
* @since 1.18
|
||||
*/
|
||||
public static function getWatchToken( Title $title, User $user, $action = 'watch' ) {
|
||||
if ( $action != 'unwatch' ) {
|
||||
|
|
@ -133,7 +133,7 @@ class WatchAction extends FormAction {
|
|||
* @param User $title User for whom the action is going to be performed
|
||||
* @param string $action Optionally override the action to 'watch'
|
||||
* @return string Token
|
||||
* @since 1.19
|
||||
* @since 1.18
|
||||
*/
|
||||
public static function getUnwatchToken( Title $title, User $user, $action = 'unwatch' ) {
|
||||
return self::getWatchToken( $title, $user, $action );
|
||||
|
|
|
|||
|
|
@ -181,8 +181,6 @@ class MysqlUpdater extends DatabaseUpdater {
|
|||
array( 'doUserNewTalkTimestampNotNull' ),
|
||||
array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ),
|
||||
array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ),
|
||||
|
||||
// 1.19
|
||||
array( 'addTable', 'config', 'patch-config.sql' ),
|
||||
array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -34,8 +34,6 @@ class OracleUpdater extends DatabaseUpdater {
|
|||
//1.18
|
||||
array( 'addIndex', 'user', 'i02', 'patch-user_email_index.sql' ),
|
||||
array( 'modifyField', 'user_properties', 'up_property', 'patch-up_property.sql' ),
|
||||
|
||||
// 1.19
|
||||
array( 'addTable', 'config', 'patch-config.sql' ),
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -58,8 +58,6 @@ class SqliteUpdater extends DatabaseUpdater {
|
|||
|
||||
// 1.18
|
||||
array( 'addIndex', 'user', 'user_email', 'patch-user_email_index.sql' ),
|
||||
|
||||
// 1.19
|
||||
array( 'addTable', 'config', 'patch-config.sql' ),
|
||||
array( 'addTable', 'uploadstash', 'patch-uploadstash.sql' ),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class SearchEngine {
|
|||
|
||||
/**
|
||||
* If this search backend can list/unlist redirects
|
||||
* @deprecated since 1.19 Call supports( 'list-redirects' );
|
||||
* @deprecated since 1.18 Call supports( 'list-redirects' );
|
||||
*/
|
||||
function acceptListRedirects() {
|
||||
return $this->supports( 'list-redirects' );
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* @author Neil Kandalgaonkar, 2010
|
||||
* @author Timo Tijhof, 2011
|
||||
* @since 1.19
|
||||
* @since 1.18
|
||||
*
|
||||
* Relies on: mw.config (wgFormattedNamespaces, wgNamespaceIds, wgCaseSensitiveNamespaces), mw.util.wikiGetlink
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue