Skip to content

Instantly share code, notes, and snippets.

View ciencia's full-sized avatar

Jesús Martínez Novo ciencia

View GitHub Profile
@ciencia
ciencia / core-T272386-move-inadvertent-deletion.diff
Created April 9, 2021 17:38
patch MediaWiki core T272386 MW1.34
diff --git a/includes/MovePage.php b/includes/MovePage.php
index a5d0af4..7c4c3d4 100644
--- a/includes/MovePage.php
+++ b/includes/MovePage.php
@@ -216,7 +216,9 @@
if ( $this->oldTitle->equals( $this->newTitle ) ) {
$status->fatal( 'selfmove' );
- } elseif ( $this->newTitle->getArticleID() && !$this->isValidMoveTarget() ) {
+ } elseif ( $this->newTitle->getArticleID( Title::READ_LATEST /* T272386 */ )
@ciencia
ciencia / Gerrit-612939-SpecialStatistics_SummaryText.patch
Created March 26, 2021 18:03
patch MediaWiki core enable Special:Statistics description
From c695c9e6374e64321d96d150e6ab8a93a55b1360 Mon Sep 17 00:00:00 2001
From: Ammar Abdulhamid
Date: Wed, 15 Jul 2020 20:56:45 +0100
Subject: [PATCH] Allow description text for uploaded files line in Special:Statistics
Also make Statistics summary text to really work. The message
exists for a long time but it is not being used in the special page.
Bug: T258095
Change-Id: Ic228fdb7b13ef824ef0611d9cb2d5b79504cd929
@ciencia
ciencia / General_Suggestions_delay.patch
Created March 26, 2021 17:47
patch MediaWiki core General suggestions delay
diff --git a/resources/src/mediawiki.searchSuggest/searchSuggest.js b/resources/src/mediawiki.searchSuggest/searchSuggest.js
index c5357305d5..42ad14a744 100644
--- a/resources/src/mediawiki.searchSuggest/searchSuggest.js
+++ b/resources/src/mediawiki.searchSuggest/searchSuggest.js
@@ -318,7 +318,8 @@
after: onAfterUpdate
},
cache: true,
- highlightInput: true
+ highlightInput: true,
@ciencia
ciencia / CookieWarning_noreflow.patch
Created March 26, 2021 17:43
patch Extension:CookieWarning no reflow
--- resources/ext.CookieWarning/ext.CookieWarning.mobile.less 2021-01-31 17:56:11.917323461 +0100
+++ resources/ext.CookieWarning/ext.CookieWarning.mobile.less 2021-01-31 18:31:15.801560790 +0100
@@ -10,6 +10,13 @@
font-weight: 500;
font-style: normal;
font-stretch: normal;
+ /* WikiDex: Hacer que quede pegado abajo para evitar reflow */
+ position: fixed;
+ bottom: 0;
+ z-index: 999;
@ciencia
ciencia / LocalSettings.php
Last active February 26, 2022 11:53
Grabbers
## Database settings
$wgDBtype = "mysql";
$wgDBserver = "localhost:/mnt/tmpgrab/mysql/mysql.sock";
$wgDBname = "grabber";
$wgDBuser = "grabber";
$wgDBpassword = "grabber";
# MySQL table options to use during installation or update
$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";