mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
issue 109 adding get param on news url.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8737 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1d3b9fb3a9
commit
aa7b7de8f5
1 changed files with 2 additions and 2 deletions
|
|
@ -163,8 +163,8 @@
|
|||
**/
|
||||
function dispAdminIndex() {
|
||||
//Retrieve recent news and set them into context
|
||||
$newest_news_url = sprintf("http://news.xpressengine.com/%s/news.php", Context::getLangType());
|
||||
$cache_file = sprintf("%sfiles/cache/newest_news.%s.cache.php", _XE_PATH_,Context::getLangType());
|
||||
$newest_news_url = sprintf("http://news.xpressengine.com/%s/news.php?version=%s&package=%s", _XE_LOCATION_, __ZBXE_VERSION__, _XE_PACKAGE_);
|
||||
$cache_file = sprintf("%sfiles/cache/newest_news.%s.cache.php", _XE_PATH_, _XE_LOCATION_);
|
||||
if(!file_exists($cache_file) || filemtime($cache_file)+ 60*60 < time()) {
|
||||
// Considering if data cannot be retrieved due to network problem, modify filemtime to prevent trying to reload again when refreshing administration page
|
||||
// Ensure to access the administration page even though news cannot be displayed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue