Permalink
Browse files

Fixed return of css,js

  • Loading branch information...
1 parent 7daa590 commit ae0d75e0cc207833da364756318200745b7a1065 @deepwinter deepwinter committed May 3, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 modules/mopcore/classes/controller/ajax.php
View
4 modules/mopcore/classes/controller/ajax.php
@@ -66,10 +66,12 @@ public function action_html($uri)
$cssResources = array();
array_push($cssResources, $this->resources['librarycss']);
array_push($cssResources, $this->resources['css']);
+ $cssResources = array_values($cssResources);
$jsResources = array();
array_push($jsResources, $this->resources['libraryjs']);
array_push($jsResources, $this->resources['js']);
+ $jsResources = array_values($jsResources);
$ajaxResponse = array(
'response'=>array(
@@ -103,10 +105,12 @@ public function action_compound($uri)
$cssResources = array();
array_push($cssResources, $this->resources['librarycss']);
array_push($cssResources, $this->resources['css']);
+ $cssResources = array_values($cssResources);
$jsResources = array();
array_push($jsResources, $this->resources['libraryjs']);
array_push($jsResources, $this->resources['js']);
+ $jsResources = array_values($jsResources);
$compoundResponse = array(

0 comments on commit ae0d75e

Please sign in to comment.