Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] [com_content] [wip] convert to prepared statement #25179

Closed
wants to merge 19 commits into from
Closed

[4.0] [com_content] [wip] convert to prepared statement #25179

wants to merge 19 commits into from

Conversation

alikon
Copy link
Contributor

@alikon alikon commented Jun 11, 2019

Summary of Changes

use prepared statement for SQL

Testing Instructions

test com_content

Expected result

should work as before

Actual result

N/A

@@ -50,6 +51,7 @@ public function association($articleid)
}

// Get the associated menu items
$associations = array_values($associations);
$db = Factory::getDbo();
$query = $db->getQuery(true)
->select('c.*')
Copy link
Contributor

Choose a reason for hiding this comment

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

Convert 57-67.

@@ -171,13 +181,13 @@ public function getItem($pk = null)
{
throw new \Exception(Text::_('COM_CONTENT_ERROR_ARTICLE_NOT_FOUND'), 404);
}

/*
Copy link
Contributor

Choose a reason for hiding this comment

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

Comment??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes i wasn't able to understand what's the meaning of that if, and plus testing work well without
any help ?

@ghost ghost changed the title [4.0][com_content][wip] convert to prepared statement [4.0] [com_content] [wip] convert to prepared statement Jun 13, 2019
@HLeithner
Copy link
Member

@alikon it would be cool if can bring this PR back.

@alikon
Copy link
Contributor Author

alikon commented Aug 8, 2019

re-opened as requested, but it will conflict with #25760

@alikon alikon reopened this Aug 8, 2019
@alikon
Copy link
Contributor Author

alikon commented Aug 30, 2019

sorry but too much changes since it was opened,or i'm a git dumb, but ,i cannot manage it, better to start from scratch with a new one

@alikon alikon closed this Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants