]> git.mxchange.org Git - friendica.git/commitdiff
Language data won't be displayed anymore (it was experimental stuff)
authorMichael <heluecht@pirati.ca>
Mon, 27 Feb 2017 23:59:05 +0000 (23:59 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 27 Feb 2017 23:59:05 +0000 (23:59 +0000)
mod/admin.php
object/Item.php
view/templates/admin_site.tpl

index 14751308344f39fc233566aaffa717ea6f871c41..4b8182dfeec6c58a3a7cbad589a71145b8ad8001 100644 (file)
@@ -651,7 +651,6 @@ function admin_page_site_post(App $a) {
        $force_ssl              =       ((x($_POST,'force_ssl'))                ? True                                          : False);
        $old_share              =       ((x($_POST,'old_share'))                ? True                                          : False);
        $hide_help              =       ((x($_POST,'hide_help'))                ? True                                          : False);
-       $suppress_language      =       ((x($_POST,'suppress_language'))        ? True                                          : False);
        $suppress_tags          =       ((x($_POST,'suppress_tags'))            ? True                                          : False);
        $use_fulltext_engine    =       ((x($_POST,'use_fulltext_engine'))      ? True                                          : False);
        $itemcache              =       ((x($_POST,'itemcache'))                ? notags(trim($_POST['itemcache']))             : '');
@@ -734,7 +733,6 @@ function admin_page_site_post(App $a) {
        set_config('config','sitename',$sitename);
        set_config('config','hostname',$hostname);
        set_config('config','sender_email', $sender_email);
-       set_config('system','suppress_language',$suppress_language);
        set_config('system','suppress_tags',$suppress_tags);
        set_config('system','shortcut_icon',$shortcut_icon);
        set_config('system','touch_icon',$touch_icon);
@@ -1052,7 +1050,6 @@ function admin_page_site(App $a) {
                '$nodeinfo'             => array('nodeinfo', t("Publish server information"), get_config('system','nodeinfo'), t("If enabled, general server and usage data will be published. The data contains the name and version of the server, number of users with public profiles, number of posts and the activated protocols and connectors. See <a href='http://the-federation.info/'>the-federation.info</a> for details.")),
 
                '$use_fulltext_engine'  => array('use_fulltext_engine', t("Use MySQL full text engine"), get_config('system','use_fulltext_engine'), t("Activates the full text engine. Speeds up search - but can only search for four and more characters.")),
-               '$suppress_language'    => array('suppress_language', t("Suppress Language"), get_config('system','suppress_language'), t("Suppress language information in meta information about a posting.")),
                '$suppress_tags'        => array('suppress_tags', t("Suppress Tags"), get_config('system','suppress_tags'), t("Suppress showing a list of hashtags at the end of the posting.")),
                '$itemcache'            => array('itemcache', t("Path to item cache"), get_config('system','itemcache'), t("The item caches buffers generated bbcode and external images.")),
                '$itemcache_duration'   => array('itemcache_duration', t("Cache duration in seconds"), get_config('system','itemcache_duration'), t("How long should the cache files be hold? Default value is 86400 seconds (One day). To disable the item cache, set the value to -1.")),
index d95af3419a0f8babb385e3505538b1898fe77c2f..b693520b93d8cb2e932af589a6b5da94cb51a46a 100644 (file)
@@ -287,32 +287,6 @@ class Item extends BaseObject {
 
                localize_item($item);
 
-               if ($item["postopts"] and !get_config("system", "suppress_language")) {
-                       //$langdata = explode(";", $item["postopts"]);
-                       //$langstr = substr($langdata[0], 5)." (".round($langdata[1]*100, 1)."%)";
-                       $langstr = "";
-                       if (substr($item["postopts"], 0, 5) == "lang=") {
-                               $postopts = substr($item["postopts"], 5);
-
-                               $languages = explode(":", $postopts);
-
-                               if (sizeof($languages) == 1) {
-                                       $languages = array();
-                                       $languages[] = $postopts;
-                               }
-
-                               foreach ($languages as $language) {
-                                       $langdata = explode(";", $language);
-                                       if ($langstr != "") {
-                                               $langstr .= ", ";
-                                       }
-
-                                       //$langstr .= $langdata[0]." (".round($langdata[1]*100, 1)."%)";
-                                       $langstr .= round($langdata[1]*100, 1)."% ".$langdata[0];
-                               }
-                       }
-               }
-
                $body = prepare_body($item,true);
 
                list($categories, $folders) = get_cats_and_terms($item);
@@ -420,7 +394,6 @@ class Item extends BaseObject {
                        'previewing'      => ($conv->is_preview() ? ' preview ' : ''),
                        'wait'            => t('Please wait'),
                        'thread_level'    => $thread_level,
-                       'postopts'        => $langstr,
                        'edited'          => $edited,
                        'network'         => $item["item_network"],
                        'network_name'    => network_to_name($item['item_network'], $profile_link),
index 2edfddb885f277bbae863ea9cf1b0b2ea04c494f..9c02131f064e2b187e260cf44013bc756e5ed12b 100644 (file)
        {{include file="field_input.tpl" field=$lockpath}}
        {{include file="field_input.tpl" field=$temppath}}
        {{include file="field_input.tpl" field=$basepath}}
-       {{include file="field_checkbox.tpl" field=$suppress_language}}
        {{include file="field_checkbox.tpl" field=$suppress_tags}}
        {{include file="field_checkbox.tpl" field=$nodeinfo}}
        {{include file="field_input.tpl" field=$embedly}}