Commit graph

10 commits

Author SHA1 Message Date
jenkins-bot d75911245e Merge "Revert "Directly use $wgTitle instead of relying on getContextTitle fallback"" 2020-01-01 23:31:56 +00:00
Legoktm 212477a083 Revert "Directly use $wgTitle instead of relying on getContextTitle fallback"
This reverts commit b3fb04b463.

The problem is *not* getContextTitle() - that's the correct
function to call here. The problem is that something is creating
an EditPage instance without calling setContextTitle() - that's
what needs to be fixed.

Change-Id: Ibc8280c7434bee4c4697142bcdbc1194f00c53c1
2020-01-01 23:16:28 +00:00
Brian Wolff f8d9cdebdb Make CodeEditor compatible with CSP
Adds a "script-src blob:" directive on pages using CodeEditor.
This should allow using the blob-based web-worker that ACE uses.

This bumps the MediaWiki dependency to current master (1.35.0+).

Bug: T214743
Depends-on: I68054644220cd03bc96cf8ffb9c7ee375be77f96
Change-Id: I40612274a7e1d964119433442d992a8bf67f61af
2019-10-28 12:41:05 +00:00
Daimona Eaytoy b3fb04b463 Directly use $wgTitle instead of relying on getContextTitle fallback
This is apparently the only code relying on the fallback. Since it seems to do this most of the time, use $wgTitle directly.

Bug: T176526
Change-Id: I9edc7c3cb7b0f2b024873b2f6fbdb8c275225854
2019-09-30 17:38:56 +00:00
James D. Forrester 988bc3c0b1 Drop wgCodeEditorEnableCore, default on, pointless to disable
Change-Id: I637ac6cc92183dbf73b6bb39d487c6d4099657be
2019-07-12 10:58:50 -07:00
Derick Alangi 92c432ab83 Remove "return true" legacy behavior from hook handler functions
Change-Id: Ie33721116c5ae665f45ed0a8baeace031cfeca89
2019-02-02 10:06:40 +01:00
Derick Alangi ef09440a94 Fix PHPDoc comment @return for CodeEditorHooks methods
Should return "true" (as there is no case for false) and not bool.

Change-Id: I2badcbb3b06c8a9593908b064629bfef8ea82488
2019-01-16 14:46:28 +01:00
Fomafix 6aa0a7016a Add typehints to function parameters
Change-Id: I820f7be8486c2f5d560eabe84629dd41db774735
2018-12-16 12:04:49 +01:00
Kunal Mehta fefe8893a4 Set an explicit visibility on getPageLanguage()
Change-Id: I37407f8aa5f0f9d3066583f1a54e79de0c5ca129
2018-04-14 01:44:58 +00:00
Kunal Mehta 99cd2828eb Move classes into includes/
Change-Id: I9ece489e16d214990191e5077e6271bd95fdb08c
2018-02-09 00:25:20 -08:00
Renamed from CodeEditor.hooks.php (Browse further)