]> git.mxchange.org Git - friendica.git/commitdiff
photo lockview not working, temp fix for po2php
authorFriendika <info@friendika.com>
Wed, 11 May 2011 03:10:13 +0000 (20:10 -0700)
committerFriendika <info@friendika.com>
Wed, 11 May 2011 03:10:13 +0000 (20:10 -0700)
mod/register.php
util/po2php.php
view/photo_view.tpl

index 21d5a1033c37378c775b02afe2d8a14e8eb63013..da629a21436e9f036176293aa32af46600098f3e 100644 (file)
@@ -70,9 +70,9 @@ function register_post(&$a) {
        $err = '';
 
 
-       if(strlen($username) > 48)
+       if(mb_strlen($username) > 48)
                $err .= t('Please use a shorter name.') . EOL;
-       if(strlen($username) < 3)
+       if(mb_strlen($username) < 3)
                $err .= t('Name too short.') . EOL;
 
        // I don't really like having this rule, but it cuts down
index 1aa8adc1f8adbb28d96a416cf6bd9f6498efa9a2..34e99d1ab7a7bb33e2f7fc51ba4564d0963e4394 100644 (file)
@@ -35,7 +35,7 @@ function po2php_run($argv, $argc) {
                if ($l[0]=="#") $l="";
                if (substr($l,0,15)=='"Plural-Forms: '){
                        $match=Array();
-                       preg_match("|nplurals=([0-9]*); *plural=(.*)|", $l, $match);
+                       preg_match("|nplurals=([0-9]*); *plural=(.*);|", $l, $match);
                        $cond = str_replace('n','$n',$match[2]);
                        $out .= 'function string_plural_select($n){'."\n";
                        $out .= '       return '.$cond.';'."\n";
index 6287b0898e9accae02ea9871686cc6a6df90fcb6..5dbcabadf7de6fccf9e278ed0f4c2e2350f7477c 100644 (file)
@@ -4,10 +4,10 @@
 <div id="photo-edit-link-wrap">
 {{ if $tools }}
 <a id="photo-edit-link" href="$tools.edit.0">$tools.edit.1</a>
--
+|
 <a id="photo-toprofile-link" href="$tools.profile.0">$tools.profile.1</a>
 {{ endif }}
-{{ if $lock }} - <img src="images/lock_icon.gif" class="lockview" alt="$lock" onclick="lockview(event,'photo$id');" /> {{ endif }}
+{{ if $lock }} | <img src="images/lock_icon.gif" class="lockview" alt="$lock" onclick="lockview(event,'photo/$id');" /> {{ endif }}
 </div>
 
 {{ if $prevlink }}<div id="photo-prev-link"><a href="$prevlink.0">$prevlink.1</a></div>{{ endif }}