]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Merged Cash's bugfixes from the 1.7 branch (3288:5377).
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Mar 2010 17:03:51 +0000 (17:03 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Mar 2010 17:03:51 +0000 (17:03 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@5378 36083f99-b078-4883-b0ff-0f9b5a30f544

28 files changed:
UPGRADE.txt
admin/user.php
engine/lib/elgglib.php
index.php
languages/en.php
mod/diagnostics/start.php
mod/file/friends.php
mod/file/index.php
mod/file/search.php
mod/file/world.php
mod/groups/all.php
mod/groups/index.php
mod/groups/membership.php
mod/groups/views/default/forms/forums/addpost.php
mod/groups/views/default/forms/forums/addtopic.php
mod/groups/views/default/forms/groups/edit.php
mod/pages/actions/pages/edit.php
mod/pages/index.php
mod/pages/languages/en.php
mod/pages/views/default/forms/pages/edit.php
mod/pages/views/default/pages/welcome.php
mod/pages/world.php
mod/reportedcontent/actions/add.php
mod/reportedcontent/actions/archive.php
mod/reportedcontent/actions/delete.php
mod/search/search_hooks.php
mod/thewire/everyone.php
mod/uservalidationbyemail/start.php

index b06519ac3c891a8b0989f88050716d2281fb2d56..032d285e9d109977f6f254d3b9d399feeb772895 100644 (file)
@@ -1,33 +1,19 @@
 
 ELGG UPGRADE INSTRUCTIONS
 
-1. Download the new version of Elgg from elgg.org or a mirror.
+1. Backup your Elgg database and code
 
-2. Overwrite your existing Elgg files. Any modifications should
+2. Download the new version of Elgg from elgg.org.
+
+3. Overwrite your existing Elgg files. Any modifications should
    have been written within plugins, so that they are not lost
    on overwriting. If this is not the case, take care to
    maintain your modifications, although Elgg is not guaranteed
    to work correctly in this instance. 
 
-3. Visit http://your-elgg-site-URL/upgrade.php
-
-4. Copy htaccess_dist to .htaccess, replacing your existing version.
-
-5. If you haven't already done so, install your crontab (UNIX ONLY)
-
-   Cron is a UNIX command which allows programs to be run at set 
-   times of the day.
-
-   If you want to take advantage of some of the maintenance 
-   functions such as log rotation or garbage collection, you must 
-   install a cron tab to trigger these events.
-
-   We have provided an example crontab as /crontab.example. Edit this 
-   with a text editor to provide the details of your site, rename it
-   to another filename (eg 'crontab.mine') and install it with the 
-   following command:
+4. Visit http://your-elgg-site-URL/upgrade.php
 
-                       crontab crontab.mine 
-                       
-   Substitute your filename for 'crontab.mine'.
+5. Copy htaccess_dist to .htaccess, replacing your existing version.
+   Any modifications to the original .htaccess should be moved to the
+   new .htaccess file.
 
index 2eaeb3b873b1e6c9756ff4e91af94f5effbd5784..c0d63d7e02ba6e53433004b651638f40efcd9796 100644 (file)
@@ -25,7 +25,7 @@ $title = elgg_view_title(elgg_echo('admin:user'));
 
 set_context('search');
 
-$result = "<div class='members_list'>".elgg_list_entities(array('type' => 'user', 'limit' => $limit, 'full_view' => FALSE))."</div>";
+$result = "<div class='members_list'>".elgg_list_entities(array('type' => 'user', 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE))."</div>";
 
 set_context('admin');
 
index ac46df07822170cde82af4905bb8bc6706d08531..95292a2d71f5ef8cb140affe2a2bb9d83aa31c94 100644 (file)
@@ -2374,7 +2374,7 @@ function elgg_normalise_plural_options_array($options, $singulars) {
 function full_url() {
        $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : "";
        $protocol = substr(strtolower($_SERVER["SERVER_PROTOCOL"]), 0, strpos(strtolower($_SERVER["SERVER_PROTOCOL"]), "/")) . $s;
-       $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);
+       $port = ($_SERVER["SERVER_PORT"] == "80" || $_SERVER["SERVER_PORT"] == "443") ? "" : (":".$_SERVER["SERVER_PORT"]);
        return $protocol . "://" . $_SERVER['SERVER_NAME'] . $port . $_SERVER['REQUEST_URI'];
 }
 
index c559df5b3eb4f376a6da2f2e60ba0ab067c16cdc..9f256c07e9cff08142f4638963d64ebdabe0246d 100644 (file)
--- a/index.php
+++ b/index.php
@@ -30,8 +30,14 @@ if (!trigger_plugin_hook('index', 'system', null, FALSE)) {
        }
        */
        
+       //Load the front page
+       $title = elgg_view_title(elgg_echo('content:latest'));
+       set_context('search');
+       $offset = (int)get_input('offset', 0);
+       $content = elgg_list_registered_entities(array('limit' => 10, 'offset' => $offset, 'full_view' => FALSE, 'allowed_types' => array('object','group')));
+       set_context('main');
        global $autofeed;
        $autofeed = FALSE;
-       $content = elgg_view_layout('one_column_with_sidebar', $title, elgg_view('account/forms/login'));
+       $content .= elgg_view_layout('one_column_with_sidebar', $title, elgg_view('account/forms/login'));
        page_draw(null, $content);
 }
index 7a00852acc96d56217c5941037cb85d3497ad2a6..a8400003926afef82a1306bf8e8c0dca22480363 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * Core English Lange
+ * Core English Language
  *
  * @package ElggLanguage
  * @subpackage Core
@@ -91,7 +91,7 @@ $english = array(
        'ImportException:NotAllImported' => "Not all elements were imported.",
 
        'InvalidParameterException:UnrecognisedFileMode' => "Unrecognised file mode '%s'",
-       'InvalidParameterException:MissingOwner' => "File %s (%d) is missing an owner!",
+       'InvalidParameterException:MissingOwner' => "File %s (file guid:%d) (owner guid:%d) is missing an owner!",
        'IOException:CouldNotMake' => "Could not make %s",
        'IOException:MissingFileName' => "You must specify a name before opening a file.",
        'ClassNotFoundException:NotFoundNotSavedWithFile' => "Filestore not found or class not saved with file!",
@@ -757,9 +757,9 @@ Alternatively, you can enter your database settings below and we will try and do
        'installation:viewpathcache:description' => "The view filepath cache decreases the loading times of plugins by caching the location of their views.",
        'installation:viewpathcache:label' => "Use view filepath cache (recommended)",
 
-       'upgrading' => 'Upgrading',
+       'upgrading' => 'Upgrading...',
        'upgrade:db' => 'Your database was upgraded.',
-       'upgrade:core' => 'Your elgg installation was upgraded',
+       'upgrade:core' => 'Your elgg installation was upgraded.',
 
 /**
  * Welcome
index c114c054e2d4bf10b6ba0b79026f788f364efabd..12795ebc8bd138e7131fd2b658c54b1b2db6f910 100644 (file)
@@ -91,22 +91,22 @@ function diagnostics_plugins_hook($hook, $entity_type, $returnvalue, $params)
  */
 function diagnostics_md5_dir($dir)
 {
-       //if (is_file(trim($dir, "/"))) {
-       $extensions_allowed = array('.php', '.gif', '.png', '.jpg');
+       $extensions_allowed = array('.php', '.js', '.css');
 
        $buffer = "";
 
-       if (in_array(strrchr(trim($dir, "/"), '.'), $extensions_allowed))
-       {
-               //$dir = trim($dir, "/");
-               $buffer .= md5_file($dir). "  " . trim($dir, "/") . "\n";
-       } else if ($handle = opendir($dir)) {
+       if (in_array(strrchr(trim($dir, "/"), '.'), $extensions_allowed)) {
+               $dir = rtrim($dir, "/");
+               $buffer .= md5_file($dir). "  " . $dir . "\n";
+       } else if (is_dir($dir)) {
+               $handle = opendir($dir);
                while ($file = readdir($handle)) {
-
                        if (($file != '.') && ($file != '..')) {
                                $buffer .= diagnostics_md5_dir($dir . $file. "/", $buffer);
                        }
                }
+
+               closedir($handle);
        }
 
        return $buffer;
index 0693991d9eaa84d7f4b09222e7064010b264a780..71dd2b10adf07a7e31d67087af990c16485078d1 100644 (file)
@@ -21,6 +21,7 @@
        $area2 = elgg_view_title($title);
        
        set_context('search');
+       // offset is grabbed in list_user_friends_objects
        $content = list_user_friends_objects($owner->guid, 'file', 10, false);
        set_context('file');
        $area1 = get_filetype_cloud($owner->guid, true);
index e76583f0fb77159a50279054b83970034d8c7ed0..af3d4c4710e0df458547ccf82b32d0a5bf02fd8b 100644 (file)
@@ -28,7 +28,8 @@
                
        // Get objects
        set_context('search');
-       $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'container_guid' => page_owner(), 'limit' => 10, 'full_view' => FALSE));
+       $offset = (int)get_input('offset', 0);
+       $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'container_guid' => page_owner(), 'limit' => 10, 'offset' => $offset, 'full_view' => FALSE));
        set_context('file');
        $get_filter = get_filetype_cloud(page_owner());
        if ($get_filter) {
index ed884651446fc108f34715ca71486013b4d3fd76..ea85e862d04778b8dd0cadc66cd6ea7b09868a32 100644 (file)
                
                // Set context
                set_context('search');
-               
+
+               $offset = (int)get_input('offset', 0);
                $limit = 10;
                if ($search_viewtype == "gallery") $limit = 12;
                if (!empty($tag)) {
                        $area2 .= list_entities_from_metadata($md_type, $tag, 'object', 'file', $owner_guid, $limit);
                } else {
-                       $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit));
+                       $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'owner_guid' => $owner_guid, 'limit' => $limit, 'offset' => $offset));
                }
                
                set_context("file");
index 8b5e2cb0c42a9bd5e49c3a15b02973e5d862cfa9..9f2ae5ee4d14a9d2722c45c2fbaeacd8e7abdd53 100644 (file)
@@ -30,7 +30,7 @@
        if ($tag != "")
                $area2 .= list_entities_from_metadata('tags',$tag,'object','file',0,10,false);
        else
-               $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => 10, 'full_view' => FALSE));
+               $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'file', 'limit' => 10, 'offset' => $offset, 'full_view' => FALSE));
        set_context('file');
                
        $body = elgg_view_layout('two_column_left_sidebar',$area1, $area2);
index 1d9f36dc5e768bc9d515fecebfe640a36373f18f..c4347c1e4be0286b4499266923493025a7589540 100644 (file)
        $offset = get_input("offset", 0);
        $tag = get_input("tag");
        $filter = get_input("filter");
-       if(!$filter)
+       if (!$filter) {
+               // active discussions is the default
                $filter = "active";
+       }
        
        
        // Get objects
        $context = get_context();
        
        set_context('search');
-       if ($tag != "")
-               $objects = list_entities_from_metadata('tags',$tag,'group',"","", $limit, false);
-       else{
+       if ($tag != "") {
+               // groups plugin saves tags as "interests" - see groups_fields_setup() in start.php
+               $objects = list_entities_from_metadata('interests',$tag,'group',"","", $limit, false);
+       } else {
                switch($filter){
                        case "newest":
-                       $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => 0, 'limit' => $limit, 'full_view' => false));
+                       $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => 0, 'limit' => $limit, 'offset' => $offset, 'full_view' => false));
                        break;
                        case "pop":
                        $objects = list_entities_by_relationship_count('member', true, "", "", 0, $limit, false);
                        break;
                        case "active":
-                       $objects = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 40, 0, 0, false, true);
-                       break;
                        case 'default':
-                       $objects = elgg_list_entities(array('types' => 'group', 'limit' => $limit, 'full_view' => FALSE));
+                       $objects = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 40, 0, 0, false, true);
                        break;
                }
        }
index d23fe7360840c2253407e6d21abb10712e28274a..501e6e288d2f2847d83d6574d2ca8ee77e710025 100644 (file)
@@ -20,7 +20,7 @@
        $area1 = elgg_view('page_elements/content_header', array('context' => "everyone", 'type' => 'groups'));
        
        set_context('search');
-       $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => page_owner(), 'limit' => $limit, 'full_view' => FALSE));
+       $objects = elgg_list_entities(array('types' => 'group', 'owner_guid' => page_owner(), 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE));
        set_context('groups');
        
        $area1 .= $objects;
index 4b5d6b89fd2d694dd9d69271346f43020edd7ef4..ac3ad7439b368190755146e91e77f3c6b2b4f7ba 100644 (file)
@@ -26,6 +26,7 @@
        $area2 = elgg_view('page_elements/content_header', array('context' => "mine", 'type' => 'groups'));
        
        set_context('search');
+       // offset is grabbed in the list_entities_from_relationship() function
        $objects = list_entities_from_relationship('member',page_owner(),false,'group','',0, $limit,false, false);
        set_context('groups');
        
@@ -34,4 +35,4 @@
        
        // Finally draw the page
        page_draw($title, $body);
-?>
\ No newline at end of file
+?>
index 8aa316caaa14458a6a1b6ccd197110b92e52a3bc..3ad3de0ff2be2726cbe6ede59635de819802dc1f 100644 (file)
@@ -29,6 +29,6 @@
        <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->container_guid; ?>" />
                        
        <?php echo elgg_view('input/securitytoken'); ?>
-       <!-- display the save button -->
+       <!-- display the post button -->
        <input type="submit" class="submit_button" value="<?php echo elgg_echo('post'); ?>" />
-</form>
\ No newline at end of file
+</form>
index e3bc3e1c65009ad513689fbf84b5dd5de50eaeb6..9dd70d7a8bfb800ebb8e9da45ec4540f610d2ba6 100644 (file)
@@ -99,7 +99,7 @@
        <!-- required hidden info and submit button -->
        <p>
                <input type="hidden" name="group_guid" value="<?php echo $group_guid; ?>" />
-               <input type="submit" class="submit_button" value="<?php echo elgg_echo('save'); ?>" />
+               <input type="submit" class="submit_button" value="<?php echo elgg_echo('post'); ?>" />
        </p>
 
 </form>
index 810c29bc95beb9978b0a5cdccd314055eeeb95d1..3712add820182ece64de266f42b1dad6201f3d4c 100644 (file)
 
 </form>
 
+<?php
+if ($vars['entity']) {
+?>
 <div class="delete_group">
        <form action="<?php echo $vars['url'] . "action/groups/delete"; ?>">
                <?php
                        echo elgg_view('input/securitytoken');
-                       if ($vars['entity']) { 
                                $warning = elgg_echo("groups:deletewarning");
                        ?>
                        <input type="hidden" name="group_guid" value="<?php echo $vars['entity']->getGUID(); ?>" />
                        <input type="submit" class="action_button disabled" name="delete" value="<?php echo elgg_echo('groups:delete'); ?>" onclick="javascript:return confirm('<?php echo $warning; ?>')"/><?php 
-                       }
                ?>
        </form>
 </div>
-
+<?php
+}
+?>
 
 
index 84aed61d6cb28768eb3600c512c0ac28e1eb9e70..a966232a80af437b190be295beebc9f36165cdca 100644 (file)
                // New instance, so set container_guid
                $container_guid = get_input('container_guid', $_SESSION['user']->getGUID());
                $page->container_guid = $container_guid;
+
+               // cache data in session in case data from form does not validate
+               $_SESSION['page_description'] = $input['description'];
+               $_SESSION['page_tags'] = get_input('tags');
+               $_SESSION['page_read_access'] = (int)get_input('access_id');
+               $_SESSION['page_write_access'] = (int)get_input('write_access_id');
        }
        
        // Have we got it? Can we edit it?
                        
                        // Now save description as an annotation
                        $page->annotate('page', $page->description, $page->access_id);
+
+                       // clear cache
+                       unset($_SESSION['page_description']);
+                       unset($_SESSION['page_tags']);
+                       unset($_SESSION['page_read_access']);
+                       unset($_SESSION['page_write_access']);
                                
                
                        system_message(elgg_echo("pages:saved"));
index 0e4601cefcf869607194da8c03fdcdf79b7786ee..5b31c6347d5f503bf7b947e2cc1d74c291ba67a0 100644 (file)
@@ -41,7 +41,7 @@
        
        set_context('search');
        
-       $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => page_owner(), 'limit' => $limit, 'full_view' => FALSE));
+       $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => page_owner(), 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE));
        
        set_context($context);
        
index d94ca843121c965b590cd760392f36278dbf2b05..75d1bba9b13f4203bd02a496b873f8c97aa7b88b 100644 (file)
@@ -27,7 +27,7 @@
                        'pages:history' => "Page history",
                        'pages:view' => "View page",
                        'pages:welcome' => "Edit welcome message",
-                       'pages:welcomemessage' => "Welcome to this Elgg pages plugin. This feature allows you to create pages on any topic and select who can view them and edit them.",
+                       'pages:welcomemessage' => "Welcome to the pages tool of %s. This tool allows you to create pages on any topic and select who can view them and edit them.",
                        'pages:welcomeerror' => "There was a problem saving your welcome message",
                        'pages:welcomeposted' => "Your welcome message has been posted",
                        'pages:navigation' => "Page navigation",
index 2b57fe8141d94799fa6436c432476f1908b4d2a9..2ad454073e470f1fc58dc380e5a2a25e98ad6234 100644 (file)
                        $vars['entity']->access_id = 0;
                        $vars['entity']->write_access_id = 0;
                }
+
+               // pull in sticky values from session
+               if (isset($_SESSION['page_description'])) {
+                       $vars['entity']->description = $_SESSION['page_description'];
+                       $vars['entity']->tags = $_SESSION['page_tags'];
+                       $vars['entity']->access_id = $_SESSION['page_read_access'];
+                       $vars['entity']->write_access_id = $_SESSION['page_write_access'];
+
+                       // clear them
+                       unset($_SESSION['page_description']);
+                       unset($_SESSION['page_tags']);
+                       unset($_SESSION['page_read_access']);
+                       unset($_SESSION['page_write_access']);
+               }
        }
 ?>
 <div class="contentWrapper">
index deefdba30a38dd61574e6a75807e8b192c9cb8b3..e4a465fdd3a503e6b9cae139a8352c969d0370f7 100644 (file)
@@ -22,7 +22,7 @@
 
 ?>
 
-<div class="contentWrapper pageswelcome"><p><?php elgg_echo('pages:welcomemessage'); ?></p></div>
+<div class="contentWrapper pageswelcome"><p><?php echo sprintf(elgg_echo('pages:welcomemessage'), $vars['config']->sitename); ?></p></div>
     
 <?php
     }
index d47212f2711dc1a5b0b5d81da6ca8b6e65919d3a..72433e8ec5b5b2f6718177b28fc26eaee867e8ff 100644 (file)
@@ -41,7 +41,7 @@
        
        set_context('search');
        
-       $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'limit' => $limit, 'full_view' => FALSE));
+       $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'limit' => $limit, 'offset' => $offset, 'full_view' => FALSE));
        
        set_context($context);
        
index 76cefa4c8e3aa356637d89d691d56ecc8755232f..80f67eab4ff057ba46fec5f73133d23f3dbdf3fb 100644 (file)
                
                if ($title && $address) {
                        
-                       $entity = new ElggObject;
-                       $entity->subtype = "reported_content";
-                       $entity->owner_guid = $_SESSION['user']->getGUID();
-                   $entity->title = $title;
-                   $entity->address = $address;
-                   $entity->description = $description;
-                   $entity->access_id = $access;
+                       $report = new ElggObject;
+                       $report->subtype = "reported_content";
+                       $report->owner_guid = $_SESSION['user']->getGUID();
+                   $report->title = $title;
+                   $report->address = $address;
+                   $report->description = $description;
+                   $report->access_id = $access;
                
-               if ($entity->save()) {
-                       if (!trigger_plugin_hook('reportedcontent:add', $reported->type, array('entity'=>$reported), true)) {
-                               $entity->delete();
+               if ($report->save()) {
+                       if (!trigger_plugin_hook('reportedcontent:add', 'system', array('report'=>$report), true)) {
+                               $report->delete();
                                register_error(elgg_echo('reportedcontent:failed'));
                        } else {
                                system_message(elgg_echo('reportedcontent:success'));
-                               $entity->state = "active";
+                               $report->state = "active";
                        }
                        forward($address);
                } else {
index a550abc2afd6a5897dabb17c5fff4515059d5541..ca4ad2c41835902db5b77e0bd966f1854a56d7ec 100644 (file)
                $guid = (int) get_input('item');
                
        // Make sure we actually have permission to edit
-               $reported = get_entity($guid);
-               if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
+               $report = get_entity($guid);
+               if ($report->getSubtype() == "reported_content" && $report->canEdit()) {
        
                // change the state
-                               if (!trigger_plugin_hook('reportedcontent:archive', $reported->type, array('entity'=>$reported), true)) {
+                               if (!trigger_plugin_hook('reportedcontent:archive', 'system', array('report'=>$report), true)) {
                                        system_message(elgg_echo("reportedcontent:notarchived"));
                                        forward("pg/reportedcontent/");
                                }
-                       $reported->state = "archived";
+                       $report->state = "archived";
                                
                // Success message
                                system_message(elgg_echo("reportedcontent:archived"));
index cff42b025b61172dd9de9319019b40ae16342f45..b2e9c7acd2cb84cdfe28525088b25e5464f8efd7 100644 (file)
                $guid = (int) get_input('item');
                
        // Make sure we actually have permission to edit
-               $reported = get_entity($guid);
-               if ($reported->getSubtype() == "reported_content" && $reported->canEdit()) {
+               $report = get_entity($guid);
+               if ($report->getSubtype() == "reported_content" && $report->canEdit()) {
        
                // Delete it!
-                               if (!trigger_plugin_hook('reportedcontent:delete', $reported->type, array('entity'=>$reported), true)) {
+                               if (!trigger_plugin_hook('reportedcontent:delete', '$system', array('report'=>$report), true)) {
                                        register_error(elgg_echo("reportedcontent:notdeleted"));
                                        forward("pg/reportedcontent/");
                                }
-                               $rowsaffected = $reported->delete();
+                               $rowsaffected = $report->delete();
                                if ($rowsaffected > 0) {
                // Success message
                                        system_message(elgg_echo("reportedcontent:deleted"));
index cc70f43ea8fece03cf3eac1197d220c5f4bde31e..0b606ac666414dd520e625f0feef72903f9f2e8e 100644 (file)
@@ -232,7 +232,7 @@ function search_tags_hook($hook, $type, $value, $params) {
                        // @todo make one long tag string and run this through the highlight
                        // function.  This might be confusing as it could chop off
                        // the tag labels.
-                       if (in_array($query, $tags)) {
+                       if (in_array(strtolower($query), array_map('strtolower', $tags))) {
                                if (is_array($tags)) {
                                        $tag_name_str = elgg_echo("tag_names:$tag_name");
                                        $matched_tags_strs[] = "$tag_name_str: " . implode(', ', $tags);
index 1f0913ab34b9eacd003722937ccd9d0ce12cf6d4..b49c1d9fcd04e0cc79a278ce886ae6a20ed16e77 100644 (file)
                
                //add form
                $area2 .= elgg_view("thewire/forms/add");
-               $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'thewire')); 
+               $offset = (int)get_input('offset', 0);
+               $area2 .= elgg_list_entities(array('types' => 'object', 'subtypes' => 'thewire', 'offset' => $offset));
 
-           $body = elgg_view_layout("one_column_with_sidebar", $area2);
+           $body = elgg_view_layout("two_column_left_sidebar", '', $area2);
                
        // Display page
                page_draw(elgg_echo('thewire:everyone'),$body);
                
-?>
\ No newline at end of file
+?>
index 7010fa4b8505d593ba6cbb4074b6ddfa9baeef86..fcfcb899d084cd6899261939627c9d130f9d2a85 100644 (file)
@@ -26,6 +26,8 @@ function uservalidationbyemail_init() {
  * @return unknown_type
  */
 function uservalidationbyemail_page_handler($page) {
+       global $CONFIG;
+       
        if (isset($page[0]) && $page[0] == 'confirm') {
                $code = sanitise_string(get_input('c', FALSE));
                $user_guid = get_input('u', FALSE);