]> git.mxchange.org Git - friendica.git/commitdiff
minor stuff
authorFriendika <info@friendika.com>
Thu, 4 Nov 2010 07:37:29 +0000 (00:37 -0700)
committerFriendika <info@friendika.com>
Thu, 4 Nov 2010 07:37:29 +0000 (00:37 -0700)
include/items.php
index.php
util/strings.php

index 7daf4042ca35671a7cd5f7858e9b794ef426a3ca..783ca63e0b56d99eb15b1bd85cfda6433d4f68cb 100644 (file)
@@ -500,9 +500,9 @@ function encode_rel_links($links) {
                        $o .= 'type="' . $link['attribs']['']['type'] . '" ';
                if($link['attribs']['']['href'])
                        $o .= 'type="' . $link['attribs']['']['href'] . '" ';
-               if($link['attribs'][NAMESPACE_MEDIA]['width'])
+               if( (x($link['attribs'],NAMESPACE_MEDIA)) && $link['attribs'][NAMESPACE_MEDIA]['width'])
                        $o .= 'media:width="' . $link['attribs'][NAMESPACE_MEDIA]['width'] . '" ';
-               if($link['attribs'][NAMESPACE_MEDIA]['height'])
+               if( (x($link['attribs'],NAMESPACE_MEDIA)) && $link['attribs'][NAMESPACE_MEDIA]['height'])
                        $o .= 'media:height="' . $link['attribs'][NAMESPACE_MEDIA]['height'] . '" ';
                $o .= ' />' . "\n" ;
        }
index 895e439eaff26054ca67693560beeb74e55ecb47..e858fcc974f6249460926d8ce8a4f0c83e14717a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -105,6 +105,11 @@ $a->page['content'] .=  '<div id="pause"></div>';
 if($a->module != 'install')
        require_once("nav.php");
 
+// make sure the desired theme exists, though if the default theme doesn't exist we're stuffed.
+
+if((x($_SESSION,'theme')) && (! file_exists('/view/theme/' . $_SESSION['theme'] . '/style.css')))
+       unset($_SESSION['theme']);
+
 $a->page['htmlhead'] = replace_macros($a->page['htmlhead'], array(
        '$stylesheet' => $a->get_baseurl() . '/view/theme/'
                . ((x($_SESSION,'theme')) ? $_SESSION['theme'] : 'default')
index 43a751dc218a626c61e5bd68b9f650d1b6a3787c..079d1de13e3086e758106ceeadcc8c5a7883822f 100644 (file)
@@ -114,7 +114,7 @@ $a->strings['IMPORTANT: You will need to [manually] setup a scheduled task for t
 $a->strings['Please see the file INSTALL.'] = 'Please see the file INSTALL.';
 $a->strings['Database import failed.'] = 'Database import failed.';
 $a->strings['You may need to import the file "database.sql" manually using phpmyadmin or mysql.'] = 'You may need to import the file "database.sql" manually using phpmyadmin or mysql.';
-$a->strings['Welcome to the Mistpark Social Network.'] = 'Welcome to the Mistpark Social Network.';
+$a->strings['Welcome to Friendika.'] = 'Welcome to Friendika.';
 $a->strings['Submit'] = 'Submit';
 $a->strings['Errors encountered creating database tables.'] = 'Errors encountered creating database tables.';
 $a->strings[' : '] = ' : ';
@@ -175,6 +175,7 @@ $a->strings['New Follower'] = 'New Follower';
 $a->strings['No notifications.'] = 'No notifications.';
 $a->strings['Photo Albums'] = 'Photo Albums';
 $a->strings['Contact Photos'] = 'Contact Photos';
+$a->strings['Contact information unavailable'] = 'Contact information unavailable';
 $a->strings['Profile Photos'] = 'Profile Photos';
 $a->strings['Album not found.'] = 'Album not found.';
 $a->strings['Delete Album'] = 'Delete Album';