Permalink
Browse files

deprecate(assets): Deprecates URLs like /js/ and /css/ in favor of si…

…mplecache
  • Loading branch information...
mrclay committed Mar 4, 2016
1 parent b33ff1b commit 91daac904475cd0bc78e464eb6a97ac61d325a0c
Showing with 6 additions and 0 deletions.
  1. +1 −0 docs/guides/upgrading.rst
  2. +5 −0 engine/lib/elgglib.php
@@ -19,6 +19,7 @@ Deprecated APIs
* ``get_default_filestore``
* ``set_default_filestore``
* ``elgg_get_config('siteemail')``: Use ``elgg_get_site_entity()->email``
* URLs starting with ``/css/`` and ``/js/``: ``Use elgg_get_simplecache_url()``
Added ``elgg/widgets`` module
-----------------------------
View
@@ -1667,6 +1667,7 @@ function _elgg_favicon_page_handler($segments) {
*
* @return bool
* @access private
* @deprecated 2.1 Use elgg_get_simplecache_url()
*/
function _elgg_cacheable_view_page_handler($page, $type) {
@@ -1700,6 +1701,10 @@ function _elgg_cacheable_view_page_handler($page, $type) {
if (!elgg_view_exists($view)) {
return false;
}
$msg = 'URLs starting with /js/ and /css/ are deprecated. Use elgg_get_simplecache_url().';
elgg_deprecated_notice($msg, '2.1');
$return = elgg_view($view);
header("Content-type: $content_type;charset=utf-8");

0 comments on commit 91daac9

Please sign in to comment.