|
Last change
on this file since 770 was
757,
checked in by toemon, 14 years ago
|
|
ConfigFromXoopsクラスを廃止し、modInfoクラスを使用するように変更
WP2.2以下で使用するテンプレートold_templateの廃止
|
|
File size:
504 bytes
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | // Set XPressME memory limit
|
|---|
| 3 | function xpress_set_memory_limmit(){
|
|---|
| 4 | global $xoopsDB,$xoopsModule,$xoopsModuleConfig;
|
|---|
| 5 |
|
|---|
| 6 | $memory = ! empty($xoopsModuleConfig) ? $xoopsModuleConfig['memory_limit'] : 0;
|
|---|
| 7 |
|
|---|
| 8 | if (empty($memory)) return;
|
|---|
| 9 | if ( !defined('WP_MEMORY_LIMIT') )
|
|---|
| 10 | define('WP_MEMORY_LIMIT', $memory . 'M');
|
|---|
| 11 | if ( function_exists('memory_get_usage') && ( (int) @ini_get('memory_limit') < abs(intval(WP_MEMORY_LIMIT)) ) )
|
|---|
| 12 | @ini_set('memory_limit', WP_MEMORY_LIMIT);
|
|---|
| 13 | }
|
|---|
| 14 | ?> |
|---|
Note: See
TracBrowser
for help on using the repository browser.