Page MenuHomeDevCentral

D727.id1824.diff
No OneTemporary

D727.id1824.diff

diff --git a/page.php b/page.php
--- a/page.php
+++ b/page.php
@@ -94,6 +94,11 @@
public $antiAdBlocker = false;
/**
+ * @var bool If true, this site is behind a paywall
+ */
+ public $paywall = false;
+
+ /**
* @var mixed If not null, contains an array for another service to use
*/
public $switchTo = null;
diff --git a/templates/wikipedia-fr/Lien_web.php b/templates/wikipedia-fr/Lien_web.php
--- a/templates/wikipedia-fr/Lien_web.php
+++ b/templates/wikipedia-fr/Lien_web.php
@@ -12,6 +12,8 @@
public $site;
public $pageDate = null;
public $accessdate;
+ public $antiAdBlocker;
+ public $paywall;
/**
* @var bool Indicates if we've to remove jour/mois/année parameters
@@ -49,6 +51,7 @@
$template->skipYMD = $page->skipYMD;
$template->skipMD = $page->skipMD;
$template->antiAdBlocker = $page->antiAdBlocker;
+ $template->paywall = $page->paywall;
return $template;
}
@@ -106,6 +109,10 @@
$template .= " {{Publicité forcée}}";
}
+ if ($this->paywall) {
+ $template .= " {{inscription nécessaire}}";
+ }
+
return $template;
}
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 22, 09:26 (5 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255850
Default Alt Text
D727.id1824.diff (1 KB)

Event Timeline