Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 11
Línea 1659... Línea 1659...
1659
     * page footer. You should not normally need to call it in your own code.
1659
     * page footer. You should not normally need to call it in your own code.
1660
     *
1660
     *
1661
     * @return string the HTML code to to at the end of the page.
1661
     * @return string the HTML code to to at the end of the page.
1662
     */
1662
     */
1663
    public function get_end_code() {
1663
    public function get_end_code() {
1664
        global $CFG;
1664
        global $CFG, $USER;
1665
        $output = '';
1665
        $output = '';
Línea 1666... Línea 1666...
1666
 
1666
 
1667
        // Set the log level for the JS logging.
1667
        // Set the log level for the JS logging.
1668
        $logconfig = new stdClass();
1668
        $logconfig = new stdClass();
Línea 1672... Línea 1672...
1672
        }
1672
        }
1673
        $this->js_call_amd('core/log', 'setConfig', array($logconfig));
1673
        $this->js_call_amd('core/log', 'setConfig', array($logconfig));
1674
        // Add any global JS that needs to run on all pages.
1674
        // Add any global JS that needs to run on all pages.
1675
        $this->js_call_amd('core/page_global', 'init');
1675
        $this->js_call_amd('core/page_global', 'init');
1676
        $this->js_call_amd('core/utility');
1676
        $this->js_call_amd('core/utility');
-
 
1677
        $this->js_call_amd('core/storage_validation', 'init', [
-
 
1678
            !empty($USER->currentlogin) ? (int) $USER->currentlogin : null
-
 
1679
        ]);
Línea 1677... Línea 1680...
1677
 
1680
 
1678
        // Call amd init functions.
1681
        // Call amd init functions.
Línea 1679... Línea 1682...
1679
        $output .= $this->get_amd_footercode();
1682
        $output .= $this->get_amd_footercode();