Index: branches/resourceloader/phase3/includes/ResourceLoader.php |
— | — | @@ -119,6 +119,16 @@ |
120 | 120 | $this->loadedModules = array_unique( $this->loadedModules ); |
121 | 121 | $retval = ''; |
122 | 122 | |
| 123 | + /* |
| 124 | + * Skin::makeGlobalVariablesScript needs to be modified so that we still output the globals for now, but also |
| 125 | + * put them into the initial payload like this: |
| 126 | + * |
| 127 | + * // Sets the inital configuration |
| 128 | + * mw.config.set( { 'name': 'value', ... } ); |
| 129 | + * |
| 130 | + * Also, the naming of these variables is horrible and sad, hopefully this can be worked on |
| 131 | + */ |
| 132 | + |
123 | 133 | foreach ( $this->scripts as $script ) { |
124 | 134 | // TODO: file_get_contents() errors? |
125 | 135 | // TODO: CACHING! |