Project

General

Profile

Revision 01f36513

Added by Assos Assos about 6 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/themes/bootstrap/includes/registry.inc
229 229
        // File to be included by core's theme function when a theme hook is
230 230
        // invoked.
231 231
        if (isset($registry[$hook])) {
232
          if (!isset($registry[$hook][$phase_key])) {
233
            $registry[$hook][$phase_key] = array();
234
          }
235 232
          if (!isset($registry[$hook]['includes'])) {
236 233
            $registry[$hook]['includes'] = array();
237 234
          }
......
252 249

  
253 250
      // Iterate over each registered hook.
254 251
      foreach ($registry as $hook => $info) {
252
        // Ensure the current phase callback functions array exists.
253
        if (!isset($registry[$hook][$phase_key])) {
254
          $registry[$hook][$phase_key] = array();
255
        }
256

  
255 257
        // Remove function callbacks if a template was found.
256 258
        if (isset($info['function']) && isset($info['template'])) {
257 259
          unset($registry[$hook]['function']);

Also available in: Unified diff