Theme page routing bug fix.

Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/5b3ae43f
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/5b3ae43f
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/5b3ae43f

Branch: refs/heads/master
Commit: 5b3ae43f6cad0d0f07b25c945725afbce4342134
Parents: e85a51f
Author: Nipurn Doshi <[email protected]>
Authored: Fri Oct 30 14:38:28 2015 -0400
Committer: Nipurn Doshi <[email protected]>
Committed: Fri Oct 30 14:38:28 2015 -0400

----------------------------------------------------------------------
 app/routes.php | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/5b3ae43f/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index 4a4f418..e5e1aeb 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -219,7 +219,7 @@ Route::get( "pages/{theme_view}", function( $theme_view){
        //In some cases, theme doesn't get loaded in session, so doing that here
        //as well incase it does not.
        if(! Session::has("theme")){
-               Session::put("theme", 
Config::get('pga_config.portal')['theme']);
+               Session::put("x", Config::get('pga_config.portal')['theme']);
        }
     return View::make("pages", array("page" => $theme_view) );
 });
@@ -231,11 +231,15 @@ Route::get("airavata/down", function () {
 /*
  * Test Routes.
 */
-/*
+
 Route::get("testjob", function () {
-    //print_r( Session::all());
+    if( is_dir( URL::to('/') . '/../themes/seagrid' ) )
+       print_r("test yes");
+    else
+       print_r("test no"); 
+    exit;
 });
-*/
+
 /*handling errors on production */
 App::missing(function($exception)
 {

Reply via email to