Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Rev 6749 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 4842
Línea 66... Línea 66...
66
        if($request->isPost()) {
66
        if($request->isPost()) {
Línea 67... Línea 67...
67
  
67
  
68
            $currentUserPlugin = $this->plugin('currentUserPlugin');
68
            $currentUserPlugin = $this->plugin('currentUserPlugin');
Línea 69... Línea 69...
69
            $currentUser = $currentUserPlugin->getUser();
69
            $currentUser = $currentUserPlugin->getUser();
-
 
70
        
Línea -... Línea 71...
-
 
71
            $currentNetworkPlugin = $this->plugin('currentNetworkPlugin');
70
        
72
            $currentNetwork = $currentNetworkPlugin->getNetwork();
71
            $sandbox = $this->config['leaderslinked.runmode.sandbox'];
73
            
72
            
74
            
-
 
75
            if($currentNetwork->moodle_url) {
-
 
76
                $url = $currentNetwork->moodle_url; 
-
 
77
            } else {
-
 
78
            
-
 
79
            
-
 
80
                $sandbox = $this->config['leaderslinked.runmode.sandbox'];
-
 
81
                
73
            if($sandbox) {
82
                if($sandbox) {
-
 
83
                    $url = $this->config['leaderslinked.moodle.url_sandbox'];
74
                $url = $this->config['leaderslinked.moodle.url_sandbox'];
84
                } else {
Línea 75... Línea 85...
75
            } else {
85
                    $url = $this->config['leaderslinked.moodle.url_production'];
76
                $url = $this->config['leaderslinked.moodle.url_production'];
86
                }
77
            }
87
            }