Skip to content

Revert hard coded Name string in templates - #29161

Merged
lordelix merged 2 commits into
masterfrom
fh-fix-default-name-string
Oct 12, 2017
Merged

lordelix merged 2 commits into
masterfrom
fh-fix-default-name-string

Conversation

@lordelix

@lordelix lordelix commented Oct 6, 2017 •

Copy link
Copy Markdown
Contributor

Description

Revert back hard-coded name string in core template files

Related Issue

https://github.com/owncloud/enterprise/issues/2271

How Has This Been Tested?

Visual test

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment thread apps/files_sharing/templates/public.php Outdated
<a href="<?php print_unescaped(link_to('', 'index.php')); ?>" title="" id="owncloud">
<h1 class="logo-icon">
<span class="own">own</span><span class="cloud">Cloud</span>
<?php $theme->getName(); ?>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This, unfortunately, overrides CE & EE theme. Shouldn't happen but does 👎

Comment thread lib/private/legacy/defaults.php Outdated

$this->defaultEntity = 'ownCloud'; /* e.g. company name, used for footers and copyright notices */
$this->defaultName = 'ownCloud'; /* short name, used when referring to the software */
$this->defaultName = '<span class="own">own</span><span class="cloud">Cloud</span>'; /* short name, used when referring to the software */

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To provide the look needed in the EE Theme, we a bit more HTML in the defaultName. (Related to https://github.com/owncloud/core/pull/29161/files#r143151177)

This should not be escaped but render out valid HTML. @patrickjahns or @DeepDiver1975

@patrickjahns patrickjahns Oct 6, 2017 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👎 I am not comfortable adding HTML tags to a string only field;
Also check occurences of $theme->getName() in the code - this will break other templates as well

@michaelstingl michaelstingl left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PVince81

PVince81 commented Oct 9, 2017

Copy link
Copy Markdown
Contributor

Fixes #29172

@lordelix lordelix changed the title [WIP] Revert hard coded Name string in templates Revert hard coded Name string in templates Oct 10, 2017
@lordelix

Copy link
Copy Markdown
Contributor Author

I removed the hard-coded ownCloud occurrences in core.
This will alter the look in the files_sharing app in conjunction with the enterprise theme, but I guess we can live with that ;-)

@patrickjahns

@DeepDiver1975

Copy link
Copy Markdown
Contributor

please squash ...

Fall back to simple ownCloud string

Don't restrain Name length
@lordelix
lordelix force-pushed the fh-fix-default-name-string branch from 1968ce0 to bc44c20 Compare October 10, 2017 14:45
@lordelix

Copy link
Copy Markdown
Contributor Author

Please review @DeepDiver1975 & @patrickjahns … No longer in progress.

@patrickjahns patrickjahns left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michaelstingl has the final say in this matter

@michaelstingl michaelstingl left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I only tested the ownBrander generated theme and I didn't test if this breaks other stuff… (vanilla oC, example theme etc)

@lordelix
lordelix merged commit bb2aaea into master Oct 12, 2017
@lordelix
lordelix deleted the fh-fix-default-name-string branch October 12, 2017 08:42
@PVince81

Copy link
Copy Markdown
Contributor

@felixheidecke please backport to stable10

@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 - To Review p1-urgent Critical issue, need to consider hotfix with just that issue status/STALE

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants