Move profile includes into modules/profile/
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 26 Feb 2007 19:50:54 +0000 (19:50 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Mon, 26 Feb 2007 19:50:54 +0000 (19:50 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1525 839d8a87-29fc-0310-9880-83ba4fa771e5

29 files changed:
modules/profile.php
modules/profile/assign_adresses.inc.php [moved from include/profil/assign_adresses.inc.php with 100% similarity]
modules/profile/assign_deco.inc.php [moved from include/profil/assign_deco.inc.php with 100% similarity]
modules/profile/assign_emploi.inc.php [moved from include/profil/assign_emploi.inc.php with 100% similarity]
modules/profile/assign_general.inc.php [moved from include/profil/assign_general.inc.php with 100% similarity]
modules/profile/assign_mentor.inc.php [moved from include/profil/assign_mentor.inc.php with 100% similarity]
modules/profile/assign_poly.inc.php [moved from include/profil/assign_poly.inc.php with 100% similarity]
modules/profile/assign_skill.inc.php [moved from include/profil/assign_skill.inc.php with 100% similarity]
modules/profile/get_adresses.inc.php [moved from include/profil/get_adresses.inc.php with 100% similarity]
modules/profile/get_deco.inc.php [moved from include/profil/get_deco.inc.php with 100% similarity]
modules/profile/get_emploi.inc.php [moved from include/profil/get_emploi.inc.php with 100% similarity]
modules/profile/get_general.inc.php [moved from include/profil/get_general.inc.php with 100% similarity]
modules/profile/get_mentor.inc.php [moved from include/profil/get_mentor.inc.php with 100% similarity]
modules/profile/get_poly.inc.php [moved from include/profil/get_poly.inc.php with 100% similarity]
modules/profile/get_skill.inc.php [moved from include/profil/get_skill.inc.php with 100% similarity]
modules/profile/update_adresses.inc.php [moved from include/profil/update_adresses.inc.php with 100% similarity]
modules/profile/update_deco.inc.php [moved from include/profil/update_deco.inc.php with 100% similarity]
modules/profile/update_emploi.inc.php [moved from include/profil/update_emploi.inc.php with 100% similarity]
modules/profile/update_general.inc.php [moved from include/profil/update_general.inc.php with 100% similarity]
modules/profile/update_mentor.inc.php [moved from include/profil/update_mentor.inc.php with 100% similarity]
modules/profile/update_poly.inc.php [moved from include/profil/update_poly.inc.php with 100% similarity]
modules/profile/update_skill.inc.php [moved from include/profil/update_skill.inc.php with 100% similarity]
modules/profile/verif_adresses.inc.php [moved from include/profil/verif_adresses.inc.php with 100% similarity]
modules/profile/verif_deco.inc.php [moved from include/profil/verif_deco.inc.php with 100% similarity]
modules/profile/verif_emploi.inc.php [moved from include/profil/verif_emploi.inc.php with 100% similarity]
modules/profile/verif_general.inc.php [moved from include/profil/verif_general.inc.php with 100% similarity]
modules/profile/verif_mentor.inc.php [moved from include/profil/verif_mentor.inc.php with 100% similarity]
modules/profile/verif_poly.inc.php [moved from include/profil/verif_poly.inc.php with 100% similarity]
modules/profile/verif_skill.inc.php [moved from include/profil/verif_skill.inc.php with 100% similarity]

index efa3076..75ea8a3 100644 (file)
@@ -341,11 +341,11 @@ class ProfileModule extends PLModule
 
         //doit-on faire un update ?
         if (Env::has('modifier') || Env::has('suivant')) {
-            require_once "profil/get_{$opened_tab}.inc.php";
-            require_once "profil/verif_{$opened_tab}.inc.php";
+            require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php";
+            require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php";
 
             if($page->nb_errs()) {
-                require_once "profil/assign_{$opened_tab}.inc.php";
+                require_once dirname(__FILE__) . "/profile/assign_{$opened_tab}.inc.php";
                 $page->assign('onglet', $opened_tab);
                 $page->assign('onglet_tpl', "profile/$opened_tab.tpl");
                 return;
@@ -366,7 +366,7 @@ class ProfileModule extends PLModule
             }
 
             // mise a jour des champs relatifs au tab ouvert
-            require_once "profil/update_{$opened_tab}.inc.php";
+            require_once dirname(__FILE__) . "/profile/update_{$opened_tab}.inc.php";
 
             $log =& $_SESSION['log'];
             $log->log('profil', $opened_tab);
@@ -377,9 +377,9 @@ class ProfileModule extends PLModule
             pl_redirect('profile/edit/' . get_next_tab($opened_tab));
         }
 
-        require_once "profil/get_{$opened_tab}.inc.php";
-        require_once "profil/verif_{$opened_tab}.inc.php";
-        require_once "profil/assign_{$opened_tab}.inc.php";
+        require_once dirname(__FILE__) . "/profile/get_{$opened_tab}.inc.php";
+        require_once dirname(__FILE__) . "/profile/verif_{$opened_tab}.inc.php";
+        require_once dirname(__FILE__) . "/profile/assign_{$opened_tab}.inc.php";
 
         $page->assign('onglet', $opened_tab);
         $page->assign('onglet_tpl', "profile/$opened_tab.tpl");