]> git.mxchange.org Git - friendica.git/commitdiff
compatibility: version discovery
authorFriendika <info@friendika.com>
Fri, 14 Jan 2011 10:04:09 +0000 (02:04 -0800)
committerFriendika <info@friendika.com>
Fri, 14 Jan 2011 10:04:09 +0000 (02:04 -0800)
boot.php
include/items.php
include/notifier.php
view/atom_feed.tpl
view/en/head.tpl

index 7e71a38d9e07de55d423af40e7deced7efb32a76..9715f9cfdb49c731a4fad921fa2698ceed2e9d2b 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -3,6 +3,7 @@
 set_time_limit(0);
 
 define ( 'BUILD_ID',               1031   );
+define ( 'FRIENDIKA_VERSION',      '2.01.1000' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.0'  );
 
 define ( 'EOL',                    "<br />\r\n"     );
@@ -311,7 +312,8 @@ class App {
                $this->page['title'] = $this->config['sitename'];
                $tpl = load_view_file("view/head.tpl");
                $this->page['htmlhead'] = replace_macros($tpl,array(
-                       '$baseurl' => $this->get_baseurl() . '/'
+                       '$baseurl' => $this->get_baseurl() . '/',
+                       '$generator' => 'Friendika' . ' ' . FRIENDIKA_VERSION
                ));
        }
 
index 47bc9f15a9230b928f70d547779df351c6606336..d2104c395515c76b07806777ec090a185717c667 100644 (file)
@@ -182,6 +182,7 @@ function get_feed_for(&$a, $dfrn_id, $owner_nick, $last_update, $direction = 0)
 
 
        $atom .= replace_macros($feed_template, array(
+               '$version'      => xmlify(FRIENDIKA_VERSION),
                '$feed_id'      => xmlify($a->get_baseurl() . '/profile/' . $owner_nick),
                '$feed_title'   => xmlify($owner['name']),
                '$feed_updated' => xmlify(datetime_convert('UTC', 'UTC', 'now' , ATOM_TIME)) ,
index 5bc21cf13c092f185c31d81ec8d8839b6d46630f..7791b9bd4be5bcda51c4cd535f686eb93d5d91bf 100644 (file)
        }
 
        $atom .= replace_macros($feed_template, array(
+                       '$version'      => xmlify(FRIENDIKA_VERSION),
                        '$feed_id'      => xmlify($a->get_baseurl() . '/profile/' . $owner['nickname'] ),
                        '$feed_title'   => xmlify($owner['name']),
                        '$feed_updated' => xmlify(datetime_convert('UTC', 'UTC', $updated . '+00:00' , ATOM_TIME)) ,
index 3b2df2f676cd72461220f2db8bfa4e23771d7306..e59b20ab1c454f0886091213d1c8c9fd2f76cf19 100644 (file)
@@ -10,7 +10,7 @@
 
   <id>$feed_id</id>
   <title>$feed_title</title>
-  <generator uri="http://friendika.com" version="2.0">Friendika</generator>
+  <generator uri="http://friendika.com" version="$version">Friendika</generator>
   <link rel="license" href="http://creativecommons.org/licenses/by/3.0/" />
   $hub
   $salmon
index 50dd9cab6b8b9dafb10f6b9f961eb7d52a0a428c..04dd39bdbb2d60d3d54b7d97e9c9b8e27478e13c 100644 (file)
@@ -1,5 +1,6 @@
 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
 <base href="$baseurl" />
+<meta name="generator" content="$generator" />
 <link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
 <link rel="shortcut icon" href="$baseurl/images/ff-32.jpg">