• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Révision5906821f49008b57b8b3fae3e000765bcccd9bcf (tree)
l'heure2011-11-16 22:09:39
Auteurnbuy <nbuy@704c...>
Commiternbuy

Message de Log

cache init value for speedup

git-svn-id: https://xoopscube.svn.sourceforge.net/svnroot/xoopscube/Package_Legacy/trunk@1053 704cf05f-ae62-4b0e-a484-234ee0250e75

Change Summary

Modification

--- a/html/modules/legacy/class/newblocks.php
+++ b/html/modules/legacy/class/newblocks.php
@@ -28,6 +28,11 @@ class LegacyNewblocksObject extends XoopsSimpleObject
2828
2929 function LegacyNewblocksObject()
3030 {
31+ static $initVars;
32+ if (isset($initVars)) {
33+ $this->mVars = $initVars;
34+ return;
35+ }
3136 $this->initVar('bid', XOBJ_DTYPE_INT, '0', true);
3237 $this->initVar('mid', XOBJ_DTYPE_INT, '0', true);
3338 $this->initVar('func_num', XOBJ_DTYPE_INT, '0', true);
@@ -48,6 +53,7 @@ class LegacyNewblocksObject extends XoopsSimpleObject
4853 $this->initVar('template', XOBJ_DTYPE_STRING, '', true, 50);
4954 $this->initVar('bcachetime', XOBJ_DTYPE_INT, '0', true);
5055 $this->initVar('last_modified', XOBJ_DTYPE_INT, time(), true);
56+ $initVars = $this->mVars;
5157 }
5258
5359 function loadModule()