• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisão29b0763fb340df4b7ef74951c7447e8f456e572e (tree)
Hora2014-11-29 15:09:47
Autorhenoheno <henoheno>
Commiterumorigu

Mensagem de Log

BugTrack2/246: do_plugin_init(): KISS. $checked what => init $done

Mudança Sumário

Diff

--- a/lib/plugin.php
+++ b/lib/plugin.php
@@ -67,18 +67,18 @@ function exist_plugin_inline($name) {
6767 function_exists('plugin_' . $name . '_inline') : FALSE;
6868 }
6969
70-// Do init the plugin
71-// NOTE: Returning FALSE from $func, means "an erorr occurerd"
70+// Call 'init' function for the plugin
71+// NOTE: Returning FALSE means "An erorr occurerd"
7272 function do_plugin_init($name)
7373 {
74- static $checked = array();
74+ static $done = array();
7575
76- if (! isset($checked[$name])) {
76+ if (! isset($done[$name])) {
7777 $func = 'plugin_' . $name . '_init';
78- $checked[$name] = (! function_exists($func) || call_user_func($func) !== FALSE);
78+ $done[$name] = (! function_exists($func) || call_user_func($func) !== FALSE);
7979 }
8080
81- return $checked[$name];
81+ return $done[$name];
8282 }
8383
8484 // Call API 'action' of the plugin