Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3762253
D727.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D727.id.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 08:33 (2 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2255850
Default Alt Text
D727.id.diff (1 KB)
Attached To
Mode
D727: Use {{inscription nécessaire}} for paywall sites
Attached
Detach File
Event Timeline
Log In to Comment