Skip to content

Commit

Permalink
force unix line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Mar 8, 2013
1 parent 803eeb1 commit f5e1088
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
10 changes: 5 additions & 5 deletions .gitattributes
@@ -1,5 +1,5 @@
*.txt text
*.js text
*.html text
*.css text
*.php text
*.txt text eol=lf
*.js text eol=lf
*.html text eol=lf
*.css text eol=lf
*.php text eol=lf
8 changes: 4 additions & 4 deletions lib/midcom/helper/xml.php
Expand Up @@ -221,11 +221,11 @@ function object2data($object, $prefix = '')

foreach ($fields as $key)
{
if (substr($key, 0, 1) == '_')
{
if (substr($key, 0, 1) == '_')
{
// Remove private fields
continue;
}
continue;
}
if (is_object($object->$key))
{
$data .= $this->object2data($object->$key, "{$prefix} ");
Expand Down
22 changes: 11 additions & 11 deletions lib/net/nehmer/blog/navigation.php
Expand Up @@ -77,20 +77,20 @@ private function _add_article_leaves(&$leaves)
}
else
{
$mc = net_nehmer_blog_link_dba::new_collector('topic', $topic_id);
$mc = net_nehmer_blog_link_dba::new_collector('topic', $topic_id);
$links = $mc->get_values('article');
$qb->begin_group('OR');
if (count($links) > 0)
{
$qb->add_constraint('id', 'IN', $links);
}
$qb->add_constraint('topic', '=', $this->_content_topic->id);
$qb->begin_group('OR');
if (count($links) > 0)
{
$qb->add_constraint('id', 'IN', $links);
}
$qb->add_constraint('topic', '=', $this->_content_topic->id);
$qb->end_group();
}
$qb->add_order('metadata.published', 'DESC');
$qb->set_limit((int) $this->_config->get('index_entries'));

$results = $qb->execute();
$qb->add_order('metadata.published', 'DESC');
$qb->set_limit((int) $this->_config->get('index_entries'));

$results = $qb->execute();

// Checkup for the url prefix
if ($this->_config->get('view_in_url'))
Expand Down
6 changes: 3 additions & 3 deletions tools/update_db.php
Expand Up @@ -131,7 +131,7 @@
$GLOBALS['midcom_config_local']['person_class'] = 'openpsa_person';
$GLOBALS['midcom_config_local']['auth_type'] = 'Plaintext';

require $rootdir . 'lib/midcom.php';
require $rootdir . 'lib/midcom.php';

function _migrate_account($person)
{
Expand All @@ -145,8 +145,8 @@ function _migrate_account($person)
}
else
{
if ($user->authtype !== 'Legacy')
{
if ($user->authtype !== 'Legacy')
{
echo ' Legacy password detected for user ' . $person->username . "Resetting to 'password', please change ASAP\n";
$db_password = midcom_connection::prepare_password('password');
}
Expand Down

0 comments on commit f5e1088

Please sign in to comment.