1
0

* Implemented suggestion of removing boilerplate code in plugin API:

Change hack protection, introduce unified language loading, see
      http://board.s9y.org/viewtopic.php?f=11&t=16921
      Thanks to mt2!
This commit is contained in:
Garvin Hicking
2010-08-20 09:07:42 +00:00
parent 4914b3f708
commit 8ca7f04b8f
33 changed files with 54 additions and 319 deletions

View File

@ -3,13 +3,7 @@
// Contributed by Udo Gerhards <udo@babyblaue-seiten.de>
// OPML Contributed by Richard Thomas Harrison <rich@mibnet.plus.com>
// Probe for a language include with constants. Still include defines later on, if some constants were missing
$probelang = dirname(__FILE__) . '/' . $serendipity['charset'] . 'lang_' . $serendipity['lang'] . '.inc.php';
if (file_exists($probelang)) {
include $probelang;
}
include dirname(__FILE__) . '/lang_en.inc.php';
@serendipity_plugin_api::load_language(dirname(__FILE__));
class s9y_remoterss_XMLTree {
function GetChildren($vals, &$i) {