Page MenuHomeDevCentral

D267.id623.diff
No OneTemporary

D267.id623.diff

diff --git a/index.php b/index.php
--- a/index.php
+++ b/index.php
@@ -39,22 +39,6 @@
/// Serves the requested page
///
-/**
- * Forces bare display for broken mobiles
- *
- * @return true if header and footer must be skipped ; otherwise, false.
- */
-function force_bare_display () {
- if (strpos($_SERVER["HTTP_USER_AGENT"], " NetFront/") !== false) {
- return true;
- }
- return false;
-}
-
$url = get_current_url();
$document = new Document($url);
-if (force_bare_display()) {
- $document->noheader = true;
- $document->nofooter = true;
-}
$document->render();

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 22:25 (20 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2248080
Default Alt Text
D267.id623.diff (574 B)

Event Timeline