using serendipity_plugin_api::load_language() for some more plugins
This commit is contained in:
parent
5452764339
commit
0fff144f04
|
@ -38,13 +38,7 @@ if (IN_serendipity !== true) {
|
|||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
// 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_once dirname(__FILE__) . '/lang_en.inc.php';
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
// Because I am using get methods, if you change this, you also have to change the getManageUrlAsHidden
|
||||
define('FREETAG_MANAGE_URL','?serendipity[adminModule]=event_display&serendipity[adminAction]=managetags');
|
||||
|
@ -2574,4 +2568,4 @@ img.serendipity_freeTag_xmlButton
|
|||
}
|
||||
}
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
|
|
|
@ -1,17 +1,11 @@
|
|||
<?php #
|
||||
<?php
|
||||
|
||||
|
||||
if (IN_serendipity !== true) {
|
||||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
// 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_once dirname(__FILE__) . '/lang_en.inc.php';
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
class serendipity_plugin_freetag extends serendipity_plugin
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php #
|
||||
<?php
|
||||
|
||||
// Zoran Kovacevic http://www.kovacevic.nl/blog
|
||||
// Shameless copy of serendipity_event_entryproperties and serendipity_event_multilingual
|
||||
|
@ -8,15 +8,10 @@ if (IN_serendipity !== true) {
|
|||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
include_once dirname(__FILE__) . '/lang_en.inc.php';
|
||||
include dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
include dirname(__FILE__) . '/GeoTagDb.class.php';
|
||||
include_once dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
include_once dirname(__FILE__) . '/GeoTagDb.class.php';
|
||||
|
||||
@define("PLUGIN_EVENT_GEOTAG_DEBUG",FALSE);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php #
|
||||
<?php
|
||||
|
||||
// 20050923 Zoran Kovacevic (http://www.kovacevic.nl/blog).
|
||||
// The plugin is a shameless copy from Rob Antonishen (http://ffaat.pointclark.net/).
|
||||
|
@ -14,14 +14,9 @@ if (IN_serendipity !== true) {
|
|||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
|
||||
include_once dirname(__FILE__) . '/lang_en.inc.php';
|
||||
include dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
include_once dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
|
||||
class serendipity_plugin_geotag extends serendipity_plugin {
|
||||
|
||||
|
|
|
@ -1,17 +1,10 @@
|
|||
<?php #
|
||||
|
||||
<?php
|
||||
|
||||
if (IN_serendipity !== true) {
|
||||
die ("Don't hack!");
|
||||
}
|
||||
|
||||
// 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 serendipity_event_metadesc extends serendipity_event {
|
||||
var $title = PLUGIN_METADESC_NAME;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
}
|
||||
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
include dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
include_once dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
|
||||
class serendipity_event_osm extends serendipity_event
|
||||
{
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
}
|
||||
|
||||
@serendipity_plugin_api::load_language(dirname(__FILE__));
|
||||
include dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
include_once dirname(__FILE__) . '/plugin_version.inc.php';
|
||||
|
||||
class serendipity_event_static_osm extends serendipity_event
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue