finally, update to 5.16, after fixing the modules.inc stuff to work with
jquery_update.... sigh
This commit is contained in:
parent
be7979d58b
commit
76d0de7083
@ -1,9 +1,9 @@
|
|||||||
# $OpenBSD: Makefile,v 1.12 2009/04/03 12:55:08 espie Exp $
|
# $OpenBSD: Makefile,v 1.13 2009/04/03 19:03:03 espie Exp $
|
||||||
|
|
||||||
COMMENT = powerful content management system
|
COMMENT = powerful content management system
|
||||||
|
|
||||||
DISTNAME = drupal-5.12
|
DISTNAME = drupal-5.16
|
||||||
PKGNAME= ${DISTNAME}p0
|
PKGNAME= ${DISTNAME}
|
||||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
||||||
|
|
||||||
RUN_DEPENDS = ::www/php5/core \
|
RUN_DEPENDS = ::www/php5/core \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
MD5 (drupal5/drupal-5.12.tar.gz) = wHGB5CiU3BRDhZj3dy30NA==
|
MD5 (drupal5/drupal-5.16.tar.gz) = uLYDpdv15/KA7W4VIcqbrg==
|
||||||
RMD160 (drupal5/drupal-5.12.tar.gz) = 9B4TFXNVo06af6cHd+X/ceUchjo=
|
RMD160 (drupal5/drupal-5.16.tar.gz) = 55qh+hX1gi3DJ5DT8Phu1Mn2qLA=
|
||||||
SHA1 (drupal5/drupal-5.12.tar.gz) = QhBXNun653lujTOKzML0igcOVn4=
|
SHA1 (drupal5/drupal-5.16.tar.gz) = PdlezpVw5aiJuYaaUGCHl7KXaxk=
|
||||||
SHA256 (drupal5/drupal-5.12.tar.gz) = btLrXY8Xc5cPbajveHRMSz+TLrdePcOtM2Vap8wb9Mg=
|
SHA256 (drupal5/drupal-5.16.tar.gz) = 1Xp95eh3sKVlWi7pCQ8xmlma4KhfSN1umJPiKLTGk/w=
|
||||||
SIZE (drupal5/drupal-5.12.tar.gz) = 764327
|
SIZE (drupal5/drupal-5.16.tar.gz) = 766247
|
||||||
|
@ -1,22 +1,26 @@
|
|||||||
$OpenBSD: patch-includes_common_inc,v 1.3 2008/10/25 14:20:34 espie Exp $
|
$OpenBSD: patch-includes_common_inc,v 1.4 2009/04/03 19:03:03 espie Exp $
|
||||||
--- includes/common.inc.orig Wed Jul 9 21:34:30 2008
|
--- includes/common.inc.orig Fri Jan 16 20:26:09 2009
|
||||||
+++ includes/common.inc Sat Oct 25 16:15:27 2008
|
+++ includes/common.inc Fri Apr 3 20:58:49 2009
|
||||||
@@ -1618,8 +1618,17 @@ function drupal_clear_css_cache() {
|
@@ -1726,11 +1726,20 @@ function drupal_clear_css_cache() {
|
||||||
|
* far for $scope is returned.
|
||||||
*/
|
*/
|
||||||
function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE) {
|
function drupal_add_js($data = NULL, $type = 'module', $scope = 'header', $defer = FALSE, $cache = TRUE) {
|
||||||
|
+ $path = drupal_get_path('module', 'jquery_update');
|
||||||
if (!is_null($data)) {
|
if (!is_null($data)) {
|
||||||
- _drupal_add_js('misc/jquery.js', 'core', 'header', FALSE, $cache);
|
- _drupal_add_js('misc/jquery.js', 'core', 'header', FALSE, $cache);
|
||||||
+ if (module_exists('jquery_update')) {
|
+ if (!is_null($path)) {
|
||||||
+ $path = drupal_get_path('module', 'jquery_update');
|
|
||||||
+ _drupal_add_js($path .'/misc/jquery.js', 'core', 'header', FALSE, $cache);
|
+ _drupal_add_js($path .'/misc/jquery.js', 'core', 'header', FALSE, $cache);
|
||||||
+ } else {
|
+ } else {
|
||||||
+ _drupal_add_js('misc/jquery.js', 'core', 'header', FALSE, $cache);
|
+ _drupal_add_js('misc/jquery.js', 'core', 'header', FALSE, $cache);
|
||||||
+ }
|
+ }
|
||||||
_drupal_add_js('misc/drupal.js', 'core', 'header', FALSE, $cache);
|
_drupal_add_js('misc/drupal.js', 'core', 'header', FALSE, $cache);
|
||||||
+ $altname = $path.'/'.$data;
|
|
||||||
+ if (file_exists($altname)) {
|
|
||||||
+ return _drupal_add_js($altname, $type, $scope, $defer, $cache);
|
|
||||||
+ }
|
|
||||||
}
|
}
|
||||||
return _drupal_add_js($data, $type, $scope, $defer, $cache);
|
- return _drupal_add_js($data, $type, $scope, $defer, $cache);
|
||||||
|
+ if (!is_null($path) && file_exists($path.'/'.$data)) {
|
||||||
|
+ return _drupal_add_js($path.'/'.$data, $type, $scope, $defer, $cache);
|
||||||
|
+ } else {
|
||||||
|
+ return _drupal_add_js($data, $type, $scope, $defer, $cache);
|
||||||
|
+ }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user