/**
* 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();
/**
* Mark this particular edit/page as patrolled
- * @deprecated since 1.19
+ * @deprecated since 1.18
*/
public function markpatrolled() {
Action::factory( 'markpatrolled', $this )->show();
/**
* 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() {
/**
* 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() {
* 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
* 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
*/
/** @endcond */
/** MediaWiki version number */
-$wgVersion = '1.19alpha';
+$wgVersion = '1.18';
/** Name of the site. It must be changed in LocalSettings.php */
$wgSitename = 'MediaWiki';
/**
* 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;
/**
* 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;
*/
function wfParseUrl( $url ) {
global $wgUrlProtocols; // Allow all protocols defined in DefaultSettings/LocalSettings.php
-
+
// Protocol-relative URLs are handled really badly by parse_url(). It's so bad that the easiest
// way to handle them is to just prepend 'http:' and strip the protocol out later
$wasRelative = substr( $url, 0, 2 ) == '//';
$bits['path'] = '/' . $bits['path'];
}
}
-
+
// If the URL was protocol-relative, fix scheme and delimiter
if ( $wasRelative ) {
$bits['scheme'] = '';
* 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() {
*
* @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__ );
/**
* 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__ );
/**
* 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
*/
$section .= $this->mSectionFooters[$key];
}
$attributes = array();
- if ( $displayTitle ) {
+ if ( $displayTitle ) {
$attributes["id"] = 'prefsection-' . Sanitizer::escapeId( $key, 'noninitial' );
}
$subsectionHtml .= Xml::fieldset( $legend, $section, $attributes ) . "\n";
global $wgEnableTooltipsAndAccesskeys;
if ( !$wgEnableTooltipsAndAccesskeys )
return false;
-
+
wfProfileIn( __METHOD__ );
$message = wfMessage( "tooltip-$name" );
}
/**
- * @since 1.19
+ * @since 1.18
*/
class DummyLinker {
*
* @param $filter
* @param $position
- *
+ *
* @return Array of module names
*/
public function getModuleStyles( $filter = false, $position = null ) {
*
* @param $code Integer: status code
* @return String or null: message or null if $code is not in the list of
- * messages
+ * messages
*
- * @deprecated since 1.19 Use HttpStatus::getMessage() instead.
+ * @deprecated since 1.18 Use HttpStatus::getMessage() instead.
*/
public static function getStatusMessage( $code ) {
wfDeprecated( __METHOD__ );
* Add the default ResourceLoader modules to this object
*/
private function addDefaultModules() {
- global $wgIncludeLegacyJavaScript, $wgUseAjax,
+ global $wgIncludeLegacyJavaScript, $wgUseAjax,
$wgAjaxWatch, $wgEnableMWSuggest, $wgUseAJAXCategories;
// Add base resources
if ( $this->getUser()->getBoolOption( 'editsectiononrightclick' ) ) {
$this->addModules( 'mediawiki.action.view.rightClickEdit' );
}
-
+
if ( $wgUseAJAXCategories ) {
global $wgAJAXCategoriesNamespaces;
* 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' ) {
* 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() {
* Shortcut to get user's language
*
* @return Language
- * @since 1.19
+ * @since 1.18
*/
public function getLang() {
return $this->getContext()->getLang();
/**
* $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;
/**
* 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
} elseif ( $action == 'editredlink' ) {
$action = 'edit';
}
-
+
// Write back the executed action
$request->setVal( 'action', $action );
return $action;
* @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;
}
/*
- * @deprecated since 1.19
+ * @deprecated since 1.18
*/
public function quickEdit( $text, $comment = '', $minor = 0 ) {
global $wgUser;
}
/*
- * @deprecated since 1.19
+ * @deprecated since 1.18
*/
public function viewUpdates() {
global $wgUser;
}
/*
- * @deprecated since 1.19
+ * @deprecated since 1.18
*/
public function useParserCache( $oldid ) {
global $wgUser;
* @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' ) {
* @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 );
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' ),
);
array( 'doSchemaUpgrade17' ),
array( 'doInsertPage0' ),
array( 'doRemoveNotNullEmptyDefaults' ),
-
+
//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' ),
// till 2.0 i guess
array( 'doRebuildDuplicateFunction' ),
-
+
);
}
// 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' ),
);
/**
* 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' );
*
* @author Neil Kandalgaonkar, 2010
* @author Timo Tijhof, 2011
- * @since 1.19
+ * @since 1.18
*
* Relies on: mw.config (wgFormattedNamespaces, wgNamespaceIds, wgCaseSensitiveNamespaces), mw.util.wikiGetlink
*/