docs refactor
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Wed, 15 Dec 2004 19:04:27 +0000 (19:04 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:26:43 +0000 (23:26 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-103

htdocs/docs/contacts.php
htdocs/docs/doc_carva.php
htdocs/docs/doc_nn.php
htdocs/docs/doc_oe.php

index 3cd167d..37d2e2e 100644 (file)
@@ -21,5 +21,5 @@
 
 require_once("xorg.inc.php");
 new_skinned_page("docs/contacts.tpl",AUTH_PUBLIC);
-$page->run(isset($_REQUEST['topic']) ? $_REQUEST['topic'] : '');
+$page->run(Env::get('topic'));
 ?>
index 8133d8e..71acbd6 100644 (file)
@@ -21,5 +21,5 @@
 
 require_once("xorg.inc.php");
 new_skinned_page("docs/doc_carva.tpl",AUTH_COOKIE);
-$page->run(isset($_SESSION['alias']) ? 'alias' : '');
+$page->run(Session::get('alias'));
 ?>
index 2866ad6..1a9f47e 100644 (file)
@@ -21,5 +21,5 @@
 
 require_once("xorg.inc.php");
 new_skinned_page("docs/doc_nn.tpl",AUTH_PUBLIC);
-$page->run(isset($_GET['doc']) ? $_GET['doc'] : "");
+$page->run(Get::get('doc'));
 ?>
index b91e260..2148792 100644 (file)
@@ -21,5 +21,5 @@
 
 require_once("xorg.inc.php");
 new_skinned_page("docs/doc_oe.tpl",AUTH_PUBLIC);
-$page->run(isset($_GET['doc']) ? $_GET['doc'] : "");
+$page->run(Get::get('doc'));
 ?>