Timboven has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/61188


Change subject: Check if the current request if for an edit - and if it's for 
an edit, skip the notice
......................................................................

Check if the current request if for an edit - and if it's for an edit, skip the 
notice

Change-Id: I4acebec2c3ead3d639393bbb7828def112507492
---
M PageNotice.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageNotice 
refs/changes/88/61188/1

diff --git a/PageNotice.php b/PageNotice.php
index dddad48..43d5dee 100644
--- a/PageNotice.php
+++ b/PageNotice.php
@@ -35,6 +35,11 @@
 function wfPageNoticeHook( &$out, &$text ) {
        $name = $out->getTitle()->getPrefixedDBKey();
        $ns = $out->getTitle()->getNamespace();
+
+       $index = strpos($_SERVER["REQUEST_URI"], "action=edit");
+       if ($index > 0) {
+               return true;
+       }
        
        $opt = array(
                'parseinline',

-- 
To view, visit https://gerrit.wikimedia.org/r/61188
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4acebec2c3ead3d639393bbb7828def112507492
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageNotice
Gerrit-Branch: master
Gerrit-Owner: Timboven <tim.bo...@telenet.be>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to