Fix all the head() and admin_head() theme callbacks to return the

results of the $theme->css() and $theme->script() calls.  This handles
the case where combining scripts/css returns HTML instead of putting
it in the queue for combination.  Fixes #1611.
This commit is contained in:
Bharat Mediratta
2011-01-15 13:14:43 -08:00
parent 38b7493287
commit ee13b934f4
7 changed files with 38 additions and 39 deletions
+4 -4
View File
@@ -19,12 +19,12 @@
*/
class user_theme_Core {
static function head($theme) {
$theme->css("user.css");
$theme->script("password_strength.js");
return $theme->css("user.css")
. $theme->script("password_strength.js");
}
static function admin_head($theme) {
$theme->css("user.css");
$theme->script("password_strength.js");
return $theme->css("user.css")
. $theme->script("password_strength.js");
}
}