* ResourceLoader no longer creates the 'mw.legacy' placeholder object. It has
been unused since 1.16 and was deprecated in 1.22. To deprecate a property
in JavaScript, use mw.log.deprecate() instead.
+* The 'user.groups' module, deprecated in 1.28, was removed.
+ Use the 'user' module instead.
* …
=== Deprecations in 1.34 ===
RequestContext::getMain()->setTitle( $wgTitle );
try {
- /* Construct an ApiMain with the arguments passed via the URL. What we get back
- * is some form of an ApiMain, possibly even one that produces an error message,
- * but we don't care here, as that is handled by the constructor.
- */
+ // Construct an ApiMain with the arguments passed via the URL. What we get back
+ // is some form of an ApiMain, possibly even one that produces an error message,
+ // but we don't care here, as that is handled by the constructor.
$processor = new ApiMain( RequestContext::getMain(), true );
// Last chance hook before executing the API
<?php
/**
- * Handle page deletion
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
<?php
/**
- * action=edit handler
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
- * Page edition handler
+ * Page edition handler (action=edit)
*
* This is a wrapper that will call the EditPage class or a custom editor from an extension.
*
<?php
/**
- * action=protect handler
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
- * Handle page protection
+ * Handle page protection (action=protect)
*
* This is a wrapper that will call Article::protect().
*
<?php
/**
- * Handle action=render
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
<?php
/**
- * action=unprotect handler
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
- * Handle page unprotection
+ * Handle page unprotection (action=unprotect)
*
* This is a wrapper that will call Article::unprotect().
*
<?php
/**
- * An action that views article content
- *
- * Copyright © 2012 Timo Tijhof
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Actions
- * @author Timo Tijhof
*/
/**
*
* @file
* @ingroup Cache
- * @author 2015 Timo Tijhof
*/
/**
<?php
/**
- * Message blobs storage used by ResourceLoader.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* @file
* @author Roan Kattouw
* @author Trevor Parscal
- * @author Timo Tijhof
*/
use MediaWiki\MediaWikiServices;
<?php
/**
- * ResourceLoader module for populating language specific data.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @author Santhosh Thottingal
- * @author Timo Tijhof
*/
/**
<?php
/**
- * ResourceLoader module for skin stylesheets.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @author Timo Tijhof
*/
+/**
+ * ResourceLoader module for skin stylesheets.
+ */
class ResourceLoaderSkinModule extends ResourceLoaderFileModule {
/**
* All skins are assumed to be compatible with mobile
*
* @file
* @ingroup Benchmark
- * @author Timo Tijhof
*/
require_once __DIR__ . '/Benchmarker.php';
*
* @file
* @ingroup Benchmark
- * @author Timo Tijhof
*/
require_once __DIR__ . '/Benchmarker.php';
*
* @file
* @ingroup Benchmark
- * @author Timo Tijhof
*/
require_once __DIR__ . '/Benchmarker.php';
* symbols being documented but not declared or defined.
*
* Copyright (C) 2012 Tamas Imrei <tamas.imrei@gmail.com> https://virtualtee.blogspot.com/
- * Copyright (C) 2015 Timo Tijhof
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
<?php
/**
- * Remove all cache entries for ResourceLoader modules from the database.
- *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
*
* @file
* @ingroup Maintenance
- * @author Timo Tijhof
*/
use Wikimedia\Rdbms\IDatabase;
require_once __DIR__ . '/Maintenance.php';
/**
- * Maintenance script to purge the module_deps database cache table.
+ * Maintenance script to purge the module_deps database cache table for ResourceLoader.
*
* @ingroup Maintenance
*/
'xmlns' => 'http://a9.com/-/spec/opensearch/1.1/',
'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/' ] );
-/* The spec says the ShortName must be no longer than 16 characters,
- * but 16 is *realllly* short. In practice, browsers don't appear to care
- * when we give them a longer string, so we're no longer attempting to trim.
- *
- * Note: ShortName and the <link title=""> need to match; they are used as
- * a key for identifying if the search engine has been added already, *and*
- * as the display name presented to the end-user.
- *
- * Behavior seems about the same between Firefox and IE 7/8 here.
- * 'Description' doesn't appear to be used by either.
- */
+// The spec says the ShortName must be no longer than 16 characters,
+// but 16 is *realllly* short. In practice, browsers don't appear to care
+// when we give them a longer string, so we're no longer attempting to trim.
+//
+// Note: ShortName and the <link title=""> need to match; they are used as
+// a key for identifying if the search engine has been added already, *and*
+// as the display name presented to the end-user.
+//
+// Behavior seems about the same between Firefox and IE 7/8 here.
+// 'Description' doesn't appear to be used by either.
$fullName = wfMessage( 'opensearch-desc' )->inContentLanguage()->text();
print Xml::element( 'ShortName', null, $fullName );
print Xml::element( 'Description', null, $fullName );
'class' => ResourceLoaderWikiModule::class,
'styles' => [ 'MediaWiki:Filepage.css' ],
],
- 'user.groups' => [
- // Merged into 'user' since MediaWiki 1.28 - kept for back-compat
- 'dependencies' => 'user',
- 'targets' => [ 'desktop', 'mobile' ],
- ],
// Scripts managed by the current user (stored in their user space)
'user' => [ 'class' => ResourceLoaderUserModule::class ],
/*!
* Augment mw.loader to facilitate module-level profiling.
*
- * @author Timo Tijhof
* @since 1.32
*/
/* global mw */