Adds partial tree for jobterms if autocompletion is not enough. Only in profile editing.
[platal.git] / classes / xorg.php
index 2c7e2d2..83bc952 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
 
 class Xorg extends Platal
 {
+    public function __construct()
+    {
+        parent::__construct('auth', 'carnet', 'email', 'events', 'forums',
+                            'lists', 'marketing', 'payment', 'platal',
+                            'profile', 'register', 'search', 'stats', 'admin',
+                            'newsletter', 'axletter', 'bandeau', 'survey',
+                            'fusionax', 'gadgets', 'googleapps', 'poison',
+                            'openid', 'reminder');
+    }
+
+    public function find_hook()
+    {
+        if ($this->path{0} >= 'A' && $this->path{0} <= 'Z') {
+            return self::wiki_hook();
+        }
+        return parent::find_hook();
+    }
+
     public function force_login(PlPage &$page)
     {
         header($_SERVER['SERVER_PROTOCOL'] . ' 403 Forbidden');