diff options
author | chris <chris@teacherscpd.co.uk> | 2005-08-29 10:27:36 +0200 |
---|---|---|
committer | chris <chris@teacherscpd.co.uk> | 2005-08-29 10:27:36 +0200 |
commit | 5397cb9776dac56cc5b050b86d6fb9bfcb63dc6d (patch) | |
tree | e019c99c029b8a5e856924bef8d523c263fd4c14 /lib/plugins/admin.php | |
parent | b3dbd6341fa1d4ab86da7ade57a315148b857146 (diff) | |
download | rpg-5397cb9776dac56cc5b050b86d6fb9bfcb63dc6d.tar.gz rpg-5397cb9776dac56cc5b050b86d6fb9bfcb63dc6d.tar.bz2 |
tidy up plugin manager code (rename some classes that were using admin_plugin_* format). Fix for ->setupLocale.
darcs-hash:20050829082736-50fdc-e5eff45e1d3c45bd4f23cfa468aec2a271c8fd44.gz
Diffstat (limited to 'lib/plugins/admin.php')
-rw-r--r-- | lib/plugins/admin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php index 805689f2a..9f8d2316e 100644 --- a/lib/plugins/admin.php +++ b/lib/plugins/admin.php @@ -58,6 +58,8 @@ class DokuWiki_Admin_Plugin { function getPluginComponent() { list($t, $p, $n, $c) = explode('_', get_class($this), 4); return (isset($c)?$c:''); } function setupLocale() { + if ($this->localised) return; + global $conf; // definitely don't invoke "global $lang" $path = DOKU_PLUGIN.$this->getPluginName().'/lang/'; |