Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed return of css,js

  • Loading branch information...
commit ae0d75e0cc207833da364756318200745b7a1065 1 parent 7daa590
Matthew Xi deepwinter authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. +4 0 modules/mopcore/classes/controller/ajax.php
4 modules/mopcore/classes/controller/ajax.php
@@ -66,10 +66,12 @@ public function action_html($uri)
66 66 $cssResources = array();
67 67 array_push($cssResources, $this->resources['librarycss']);
68 68 array_push($cssResources, $this->resources['css']);
  69 + $cssResources = array_values($cssResources);
69 70
70 71 $jsResources = array();
71 72 array_push($jsResources, $this->resources['libraryjs']);
72 73 array_push($jsResources, $this->resources['js']);
  74 + $jsResources = array_values($jsResources);
73 75
74 76 $ajaxResponse = array(
75 77 'response'=>array(
@@ -103,10 +105,12 @@ public function action_compound($uri)
103 105 $cssResources = array();
104 106 array_push($cssResources, $this->resources['librarycss']);
105 107 array_push($cssResources, $this->resources['css']);
  108 + $cssResources = array_values($cssResources);
106 109
107 110 $jsResources = array();
108 111 array_push($jsResources, $this->resources['libraryjs']);
109 112 array_push($jsResources, $this->resources['js']);
  113 + $jsResources = array_values($jsResources);
110 114
111 115
112 116 $compoundResponse = array(

0 comments on commit ae0d75e

Please sign in to comment.
Something went wrong with that request. Please try again.